Copy the ast_contract table active records attachments from servicenow and paste in the sharepoint

nithiyaserv
Mega Contributor

Have requirement to download the ast_contract table active records attachments and paste in the sharepoint folder. How to achieve this ?

1 REPLY 1

ShivamT73789857
Mega Contributor

“Create a scheduled script: query active ast_contract records, read their attachments with GlideSysAttachment.getBytes(), and call a SharePoint REST API/REST Message to upload each file into the required SharePoint folder.”