Send File to NowCerts from Salesforce

What it does

When a function call is made, this automation searches Salesforce for content versions and document links tied to policies or opportunities. It then sends each file to NowCerts with the correct record ID attached.

Who it's for

Finance teams who need to share insurance policy documents from Salesforce to NowCerts without manual file transfers.

How teams use this

Sync insurance documents to NowCerts

Files uploaded to a Salesforce policy record are automatically sent to NowCerts with the policy ID attached. The team no longer downloads and uploads files by hand.

Route files by record type

The automation checks whether each file belongs to a policy or opportunity and routes it to the correct NowCerts endpoint. Only the linked record type changes the destination.

Add file metadata to the request

Include the file mime type and content distribution status in the payload sent to NowCerts via REST so the receiving system knows the file format and delivery state.

How it works

  1. Receive the function call. A function call starts this automation in real time so files can be sent to NowCerts as soon as they are ready.
  2. Find content versions and links. Search Salesforce for content versions and document links using a SOQL query WHERE clause to find files tied to policies or opportunities.
  3. Identify the linked record. Loop through each document link to check if it belongs to a policy or opportunity, then store the correct ID in a variable for routing.
  4. Send the file to NowCerts. Post the file and its linked record ID to NowCerts via a REST call so the document is attached to the right policy or opportunity.