Search Results for

    Show / Hide Table of Contents

    Method GetSelection

    GetSelection(String, String)

    Get custom button selection

    Declaration
    SelectionContract GetSelection(string connectionId, string selectionId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String selectionId

    The selection id to identify the selection object. See also Id

    Returns
    Type Description
    SelectionContract

    custom button selection

    Examples

    POST http://YourServerName/InfoShare/Json/Common/GetSelection

    Example for get custom button selection.

    {
        "connectionId": "ad06cec8-02b9-4d10-9f9c-487fec0741fd",
        "selectionId": "a05a6ae9-7604-eb11-a0db-00155d109000"
    }

    Response:

    {
        "GetSelectionResult": {
        "AllObjectIds": [
            {
                "Id": "2b164cc5-cf03-eb11-a0da-00155d109000",
                "ObjectTypeEnum": "file"
            },
            {
                "Id": "31164cc5-cf03-eb11-a0da-00155d109000",
                "ObjectTypeEnum": "task"
            }
        ],
        "Id": "0e164cc5-cf03-eb11-a0da-00155d109000",
        "ObjectIds": [
            {
                "Id": "1f164cc5-cf03-eb11-a0da-00155d109000",
                "ObjectTypeEnum": "process"
            },
            {
                "Id": "25164cc5-cf03-eb11-a0da-00155d109000",
                "ObjectTypeEnum": "folder"
            }
        ],
        "ParentObjectId": {
            "Id": "17164cc5-cf03-eb11-a0da-00155d109000",
               "ObjectTypeEnum": "document"
            }
        }
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

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

    ServiceException

    No custom button selection found for selectionId {selectionId} (10238)

    Back to top Copyright © Kendox