Sync Salesforce case attachments to ServiceNow incidents

CRMMarketingSalesIT HelpdeskDeveloperAPI

What it does

When a case is created or updated in Salesforce, this automation creates a matching incident in ServiceNow. It then downloads attachments from the case and uploads them to the incident so all files are available in both systems.

Who it's for

IT teams who manage incidents across Salesforce and ServiceNow and need attachments available in both systems.

How teams use this

Keep incident files in sync across systems

When a case is updated in Salesforce with new attachments, the incident in ServiceNow receives those files automatically. Support teams can reference all documents in one place without manual uploads.

Route cases to ServiceNow by priority

Filter cases by priority level so only high-priority cases create incidents in ServiceNow. The attachment sync remains the same for those routed cases.

Sync attachments from ServiceNow back to Salesforce

Add a reverse flow so attachments uploaded to the ServiceNow incident are also sent back to the Salesforce case. Both systems stay current with all supporting documents.

Archive case files when incident closes

Include a condition to check if the incident is closed, then archive all attachments in a shared storage system. This keeps resolved cases organized and reduces clutter in both platforms.

How it works

  1. Monitor for new or updated cases. A case is created or updated in Salesforce, and this automation retrieves the case details to begin the sync process.
  2. Create incident in ServiceNow. Create a new incident record in the ServiceNow incident table with the case information from Salesforce so both systems have matching records.
  3. Retrieve attachment details. Get the details of each attachment linked to the Salesforce case so the files can be identified and downloaded for upload to ServiceNow.
  4. Download attachment file. Download the attachment file from Salesforce using Rest so it can be transferred and uploaded to the ServiceNow incident record.
  5. Upload file to incident. Upload the attachment file to the ServiceNow incident using Rest so all files are available in both systems for reference and collaboration.