Generate and Send for SFTP
Using High Volume Document Generation API, you can generate PDFs and send them via SFTP.
Prerequisites
A valid and active Conga Advantage Platform organization.
ClientID and Secret generated and implemented. See Authorizing High Volume Document Generation.
SFTP services configured and functional.
Use Case
In this use case, we use an HMTL template to merge with data from CSV or JSON data, convert it to PDF format, and then email it via Conga Advantage Platform through SFTP
Step 1: Create an HTML Template
Create an email template on using the HTML Editor. Once done, copy the template's file ID. For more information on how to create a template and get the File ID, see the following topics:
Step 2: Create the Merge Request
You can control the values of the document generation by including the values in the merge API request body:
dataFileId: Required for the document to generate. It must contain the ID of a selected data file.
TemplateIds: Required for the document to generate. It must contain the ID of a selected template. Only one template ID is supported at this time.
Format: The value of the format must be set to either JSON or CSV, depending on your data file.
EmailProvider: This value must be set to None in order to work with SFTP.
EmailTemplateID: SFTP does not utilize an Email Template ID and should be blank.
useCongaSign: As this is not a Conga Sign integrated solution, this value must be set to false. For details on using high volume document generation with Conga Sign, refer to Generate and Conga Sign documents.
useSFTP: This must be set to true and sftpFolderName must contain a value.
SFTPFolderName: Required for use with SFTP integration. The folder path and name where the generated documents will be stored. Example: "user/dev/Coreapps".
Call the below High Volume Doc Gen API method to create the document:
Endpoint | https://coreapps-rlspreview.congacloud.com/api/highvolumemerge/v1/merge |
Request Method | Post |
Request Body |
Step 3: Check Merge Request Status
Once the documents begin to merge and send, you can verify the status of the process by checking against the batchId of the merge using the following API settings.
End Point | https://coreapps-rlsprod.congacloud.com/api/highvolumemerge/v1/status/{{batchId}} |
Request Method | GET |
Body |