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
  • Hi Eduardo,

    I have verified and reviewed how SharePoint Access Mappings are configured in our SharePoint server. I have attached the snapshot of AAM and SharePoint site home for your reference.

    I have then modified the constant as part the application you asked us to use ,
    APPIAN_SUPPORT_SHAREPOINT_HOSTNAME -> http://nhclt-pc99-1 and followed the steps mentioned in your earlier post. I have also tried with other AAM lists mentioned in the snapshot.

    I am getting the same error.

    10:19:21,305 INFO [stdout] (http-/0.0.0.0:8080-6) 2014-06-26 10:19:21,305 [http-/0.0.0.0:8080-6] ERROR com.appiancorp.core.expr.DelayedWriteContext - An error occurred while attempting to store into variable local!shpCopyDocumentFromAppianWriter. Details: com.appian.integration.sharepoint.exception.CustomRuntimeException: Unable to retrieve RequestDigest from SharePoint to execute POST request

Reply
  • Hi Eduardo,

    I have verified and reviewed how SharePoint Access Mappings are configured in our SharePoint server. I have attached the snapshot of AAM and SharePoint site home for your reference.

    I have then modified the constant as part the application you asked us to use ,
    APPIAN_SUPPORT_SHAREPOINT_HOSTNAME -> http://nhclt-pc99-1 and followed the steps mentioned in your earlier post. I have also tried with other AAM lists mentioned in the snapshot.

    I am getting the same error.

    10:19:21,305 INFO [stdout] (http-/0.0.0.0:8080-6) 2014-06-26 10:19:21,305 [http-/0.0.0.0:8080-6] ERROR com.appiancorp.core.expr.DelayedWriteContext - An error occurred while attempting to store into variable local!shpCopyDocumentFromAppianWriter. Details: com.appian.integration.sharepoint.exception.CustomRuntimeException: Unable to retrieve RequestDigest from SharePoint to execute POST request

Children
No Data