Search Results for

    Show / Hide Table of Contents

    Method ImportConfiguration

    ImportConfiguration(String, Byte[], ImportParameterContract)

    Import Configuration (Create or update all contracts contained in the zip file)

    Declaration
    ImportResultContract ImportConfiguration(string connectionId, byte[] zipFile, ImportParameterContract importParameter)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Byte[] zipFile

    The zip file to import . See also ExportConfiguration(String, ExportOptionsContract)

    ImportParameterContract importParameter

    Import parameter filled InfoStore name source and InfoStore name target,GlobalSettings import True or False.

    Returns
    Type Description
    ImportResultContract
    Remarks
    • You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    • You need "Access to security" access right (01002050-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    Examples

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

    Example for import configuration.

    {
        "connectionId": "51f15e2d-3d57-4f05-b4a7-a27f1aef9b5c",
        "importParameter": {
            "Folders": true,
            "GlobalSettings": true,
            "ProcessTemplates": true,
            "RemoteFolders": true,
            "UsersAndGroups": true,
            "CustomButtons": true
        },
        "zipFile": [
            80, 75, 3, 4, 20, 0, 0, 0, 8, 0, 213, 91, 59, ...
        ]
    }

    Response:

    {
        "ImportConfigurationResult":{
            "Exceptions":[{"ErrorNumber":0,"Message":"Object reference not set to an instance of an object.",
                    "MessageRawText":null,"ReferenceObjects":null,
                    "StackTrace":"---- System.NullReferenceException: Object reference not set to an instance of an object......"}]}
    
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    Not enough rights ({accessOperationName}, {accessOperationId}) (10071)

    ServiceException

    InfoStore not found {importParameter} (10018)

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

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

    ServiceException

    Can not delete or deactivate property {propertyTypeId} because it is still in use in {name} {folderId} (10225)

    ServiceException

    Can not delete or deactivate a system property {propertyTypeId} (10227)

    ServiceException

    Not allowed(10014)

    Back to top Copyright © Kendox