I am trying to execute example mentioned in forum to test "Copy a Document

I am trying to execute example mentioned in forum to test "Copy a Document From Appian to SharePoint" functionality using connector functions-

forum.appian.com/.../Connector_Functions

Code / Example from forum connection and API parameters suitable to the my environment-

=load(
local!documentToSend,
a!dashboardLayout(
firstColumnContents: {
a!pickerFieldDocuments(
label: "Document To Send",
maxSelections: 1,
value: local!documentToSend,
saveInto: local!documentToSend
),
if(
isnull(local!documentToSend),
{},
load(
local!shpCopyDocumentFromAppianWriter: bind(
null,
a!shpCopyDocumentFromAppian(
scsExternalSystemKey: "sharepoint",
usePerUserCredentials: true,
hostname: cons!SHAREPOINT_HOSTNAME,
port: cons!SHAREPOINT_PORT,
...

OriginalPostID-112434

OriginalPostID-112434

  Discussion posts and replies are publicly visible

Parents
  • ... timeout: cons!SHAREPOINT_TIMEOUT,
    retries: cons!SHAREPOINT_NUM_RETRIES,
    path: "/_api/web/GetFolderByServerRelativeUrl('/Shared%20Documents')/Files/add(url='" &
    document(local!documentToSend[1], "name") & "',overwrite=true)",
    appianDocument: _
    )
    ),
    a!buttonArrayLayout(
    buttons: {
    a!buttonWidget(
    label: "Send File",
    value: local!documentToSend,
    saveInto: local!shpCopyDocumentFromAppianWriter
    )
    }
    )
    )
    )
    }
    )
    )

    When I run this I see the following error -

    An Error Has Occurred
    Expression evaluation error : An error occurred while attempting to store into the following variables: [local!shpCopyDocumentFromAppianWriter]. Details: [[local!shpCopyDocumentFromAppianWriter:com.appian.integration.sharepoint.exception.CustomRuntimeException: Unable to retrie...
Reply
  • ... timeout: cons!SHAREPOINT_TIMEOUT,
    retries: cons!SHAREPOINT_NUM_RETRIES,
    path: "/_api/web/GetFolderByServerRelativeUrl('/Shared%20Documents')/Files/add(url='" &
    document(local!documentToSend[1], "name") & "',overwrite=true)",
    appianDocument: _
    )
    ),
    a!buttonArrayLayout(
    buttons: {
    a!buttonWidget(
    label: "Send File",
    value: local!documentToSend,
    saveInto: local!shpCopyDocumentFromAppianWriter
    )
    }
    )
    )
    )
    }
    )
    )

    When I run this I see the following error -

    An Error Has Occurred
    Expression evaluation error : An error occurred while attempting to store into the following variables: [local!shpCopyDocumentFromAppianWriter]. Details: [[local!shpCopyDocumentFromAppianWriter:com.appian.integration.sharepoint.exception.CustomRuntimeException: Unable to retrie...
Children
No Data