I am using Nintex Drawloop Salesforce Application.
I have created a DDP and added delivery option to store as Office 365. When I am generating document using this delivery option the generated document is being uploaded to SharePoint site folder.
My requirement is to every time when user selects this "Office 365" delivery option. A copy of the generated document should also be attached to the record from which the document package was run.
I have also checked the "Allow Attachments" checkbox on DDP record and also created the custom "Run Document Package" button with "Attach Back" option true. Following is my custom button code :
But I am not able to upload the document to SharePoint and attach to the salesforce record at the same time.
Please suggest how we can achieve this.