Search Results for

    Show / Hide Table of Contents

    Method GetVersionListItems

    GetVersionListItems(String, String, Int32, Int32)

    Get version list items

    Declaration
    List<VersionItemContract> GetVersionListItems(string connectionId, string documentId, int startIndex, int endIndex)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String documentId

    The document id. See also Id

    System.Int32 startIndex

    Index in version list. 0 for the first item

    System.Int32 endIndex

    Index in version list. -1 to get all items

    Returns
    Type Description
    System.Collections.Generic.List<VersionItemContract>

    List of version items

    Examples

    POST http://YourServerName/InfoShare/Json/Document/GetVersionListItems

    Example get version list items.

    {
       "connectionId": "1fbe116a-20a9-4378-b198-6cf3283f0238",
       "documentId": "7d58533d-75db-e911-a946-00155d290a08",
       "startIndes": 0,
       "endIndex": -1 
    }

    Response:

    {
       "GetVersionListItemsResult": [{
         "Comment": "",
         "Date": "2019-09-20T07:08:19",
         "Id": "7d58533d-75db-e911-a946-00155d290a08",
         "InternalName": "TestDocu.pdf",
         "ModificationCount": 2,
         "User": "2cd4ad99-bacf-e911-a939-00155d290a08",
         "Version": "1",
         "VersionModificationTypeEnum": "PropertyModification"
         }, {
         "Comment": "",
         "Date": "2019-09-20T07:07:07",
         "Id": "20c66844-75db-e911-a946-00155d290a08",
         "InternalName": "TestDocu.pdf",
         "ModificationCount": 1,
         "User": "2cd4ad99-bacf-e911-a939-00155d290a08",
         "Version": "1",
         "VersionModificationTypeEnum": "InitialCreate" }]
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    No document found for documentId {documentId} (10005)

    ServiceException

    Not allowed (10014)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox