Search Results for

    Show / Hide Table of Contents

    Method MoveFolderElement

    MoveFolderElement(String, FolderPathContract, FolderPathContract)

    Move a folder element (folder, search folder, document or process).

    Declaration
    FolderPathContract MoveFolderElement(string connectionId, FolderPathContract sourceFolderElementPath, FolderPathContract targetFolderPath)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    FolderPathContract sourceFolderElementPath

    Path to element which is moved

    FolderPathContract targetFolderPath

    Path to target folder

    Returns
    Type Description
    FolderPathContract

    Path of moved folder element

    Examples

    POST http://YourServerName/InfoShare/Json/Folder/MoveFolderElement

    Example for move a folder element.

    {
        "connectionId": "b60d19a3-8b4d-45a5-a4d1-ff074d4cea63",
        "sourceFolderElementPath": 
        {
            "FolderSystemId": "e00027ca-7604-eb11-a0db-00155d109000",
            "Path": "140127ca-7604-eb11-a0db-00155d109000\\b82f723c-dd54-eb11-a0f8-00155d109000"
        },
        "targetFolderPath": 
        {
            "FolderSystemId": "e00027ca-7604-eb11-a0db-00155d109000",
            "Path": "140127ca-7604-eb11-a0db-00155d109000\\a76a7836-dd54-eb11-a0f8-00155d109000"
        }
    }

    Response:

    {
        "MoveFolderElementResult": {
            "Culture": "de-DE",
            "FolderSystemId": "e00027ca-7604-eb11-a0db-00155d109000",
            "Path": "140127ca-7604-eb11-a0db-00155d109000\\a76a7836-dd54-eb11-a0f8-00155d109000\\b82f723c-dd54-eb11-a0f8-00155d109000",
            "PathGlobal": {
                "Values": [
                    {
                        "Culture": "de",
                        "Text": "Rechnungen\\Eingangsrechnungen"
                    }
                ]
            }
        }
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    Not allowed to move folder from {sourceFolderPath} to {targetFolderPath} (10019)

    ServiceException

    Root folder not found (10023)

    ServiceException

    Folder element not found {folderElementPath} (10026)

    ServiceException

    Name is not unique for culture ({culture}): {name} (10066)

    ServiceException

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

    ServiceException

    Not allowed (10014)

    Back to top Copyright © Kendox