Sync Salesforce segments to Amazon S3

CRMMarketingRecipe ToolsDeveloper ToolAPI Integration

What it does

When a record is created or updated in Salesforce, this automation retrieves the segment via HTTP GET. It then posts the segment to Amazon S3 via HTTP POST or PUT, creating new or updating based on record dates.

Who it's for

Data and analytics teams who need Salesforce segments synced to Amazon S3 in real time.

How teams use this

Keep S3 segments in sync with Salesforce

Every time an asset or email record changes in Salesforce, the corresponding segment file in Amazon S3 updates automatically. The team no longer exports segments manually.

Route segments by record type

Extend this automation to check the record type and post to different S3 folders for assets versus emails. Only the HTTP endpoint path changes based on the object.

Alert on sync failures

Add a Slack notification step after the error handler so the team knows when a segment fails to post to S3 via HTTP. The rest of the flow stays the same.

How it works

  1. Detect new or updated record. Salesforce sends an outbound message in real time when an asset or email record is created or updated.
  2. Retrieve segment via HTTP GET. Call an HTTP GET endpoint to fetch the segment data that corresponds to the Salesforce record being synced.
  3. Post segment via HTTP POST or PUT. Send the segment to Amazon S3 via HTTP POST or PUT, creating a new file or updating an existing one based on whether the created date matches the last modified date.
  4. Handle HTTP errors without retry. If the HTTP request fails, the automation logs the error and stops without retrying to prevent duplicate uploads to S3.