Sync Salesforce account feed attachments every 5 minutes

Recipe ToolsMarketingCRM

What it does

When a scheduled trigger fires every 5 minutes, this automation searches Salesforce for accounts and their feed attachments. It downloads each attachment so the files are available outside Salesforce.

Who it's for

Operations teams who need Salesforce account feed attachments downloaded on a regular schedule.

How teams use this

Archive account chatter attachments daily

Run this automation on a daily schedule instead of every 5 minutes to download all account feed attachments once per day. The same steps apply, only the timing changes.

Filter attachments by file type

Add a condition to download only PDF or image files from account feeds, so the automation skips other attachment types. This keeps storage focused on the files the team needs most.

Download attachments from specific accounts

Modify the account search to include only accounts matching certain criteria, such as a specific industry or region. The download flow stays the same but only processes relevant accounts.

How it works

  1. Run on a 5-minute schedule. This automation starts every 5 minutes so Salesforce is checked regularly for new account feed attachments to download.
  2. Search Salesforce for accounts. Search Salesforce for all accounts so the automation knows which ones to check for feed activity and attachments.
  3. Search for account feeds. For each account found, search Salesforce for feed posts and comments so attachments tied to that account can be identified.
  4. Search for feed attachments. For each feed post, search Salesforce for attachments so the automation knows which files to download and when.
  5. Download each attachment. Download each feed attachment from Salesforce so the files are stored and accessible outside the Salesforce environment.