Sharepoint Client PUT Service

Sharepoint Client PUT Service is used to put a file or list of files on Sharepoint.

The following table provides an overview of the Sharepoint Client PUT Service:
Parameters Description
session_token Session token is returned from the Begin Session service response. It is a Sterling B2B Integrator specific session.
documentlibrary The document library from where files will be stored or retrieved. Optional.
Note: If documentlibrary is not set in PUT Service, value from the Begin Session or Adapter Configuration will be used. The precedence order of documentlibrary is Individual Services > Begin Session > Adapter Configuration. If the value is not set in any of the mentioned fields, then the default documentlibrary for site (Shared Documents) will be used.
Note: To put a list of files in a specific folder in Sharepoint, make sure to mention the full path of the folder name in <assign to="documentlibrary">. For example, <assign to=" documentlibrary ">dummylib/dummyfoldername</assign>. If you do not mention the folder name along with documentlibrary, then the service will put the files under the given documentlibrary.
foldername Folder name of the file system from where the files are to be read to copy them on Sharepoint.
remotefilename The name to be used to add a file to Sharepoint in case of single document.
Note: In case of multiple document IDs, document name will be used as file name.
documentid Single Sterling B2B Integrator document ID to be added to Sharepoint.
Note: When remotefilename is specified, then the remotefilename will be used for the document to be put to Sharepoint.
documentlist The list of documents to be put to the remote server. Each item must be a documentid.
Note: When remotefilename is specified, and there is only one document, then the remotefilename will be used for the document to be put to Sharepoint.
filepattern It can be valid regular expression supported by Java 8 to be matched against the files in the foldername to be copied.
Note:
  • When remotefilename is specified, and there is only one file, then the remotefilename will be used for the file to be put to Sharepoint.
  • Either filepattern or sourcefilelist is allowed to be configured. If none of them is configured then all files from foldername will be put to Sharepoint.
sourcefilelist The comma separated list of files in the foldername to be copied to Sharepoint.
Note:
  • When remotefilename is specified, and there is only one file, then the remotefilename will be used for the file to be put to Sharepoint.
  • Either filepattern or sourcefilelist is allowed to be configured. If none of them is configured then all files from foldername will be put to Sharepoint.