Copies an Appian document to a location in SharePoint, specified by the value of the path parameter.
a!shpCopyDocumentFromAppian( scsExternalSystemKey, usePerUserCredentials, hostname, port, path, httpMethod, timeout, retries, appianDocument, appianDocumentName, subsitePath)
scsExternalSystemKey: (Text) The key from the Third Party Credentials admin console page that corresponds to the set of credentials that should be used to authenticate.
usePerUserCredentials: (Boolean) If
true the credentials set in the Third-Party Credentials settings page by the current user running the expression will be used. If
false the site-wide credential values will be used.
hostname: (Text) The scheme and hostname of the SharePoint server. For example,
port: (Number (Integer)) The port on which to connect to the SharePoint server.
path: (Text) The path portion of the REST API URL to invoke. When referring to the SharePoint REST API Reference, this parameter is the part of the URL after the
<site url> or
<app web url> shown in the examples.
httpMethod: (Text) The HTTP method to invoke: The HTTP method to use when invoking the REST API. Valid values: "GET", "POST", "PUT", "DELETE", "MERGE"
timeout: (Number (Integer)) The amount of time, in milliseconds, to wait when attempting to connect to the SharePoint server.
retries: (Number (Integer)) The number of times to retry a connection that fails to connect within the given timeout period.
appianDocument: (Document) The Appian document to copy to SharePoint.
subsitePath: (Text) Optional. The path portion of the REST API URL that represents the SharePoint subsite. It must start with a forward slash (/). Leave blank if accessing the base site.
This function returns a writer and must be used with the bind() function.
Copy a Document From Appian to SharePoint