Sync Salesforce KeyResult updates every 5 minutes

Recipe ToolsMarketingDeveloper ToolAPI IntegrationCRM

What it does

When the clock triggers every 5 minutes, this automation fetches KeyResult data via HTTP and searches Salesforce for matching records. It updates their descriptions with the current date and logs the record count so someone can verify the sync completed.

Who it's for

Sales operations teams who need KeyResult descriptions kept current in Salesforce without manual updates.

How teams use this

Keep KeyResult descriptions current automatically

Run the sync every 5 minutes so KeyResult descriptions in Salesforce always reflect today's date and the latest record count. The team sees fresh data without manual work.

Extend sync to include custom fields

Add custom field mapping to the HTTP request so the automation captures and updates custom KeyResult attributes like owner or status. The 5-minute schedule stays the same and only the data synced changes.

Route updates to a monitoring dashboard

Send the job report log to a monitoring tool so someone can track sync health and record counts over time. The Salesforce update flow stays the same.

How it works

  1. Start the 5-minute schedule. The automation runs on a 5-minute schedule to keep KeyResult records fresh and synchronized with the latest data.
  2. Fetch KeyResult data via HTTP. Send a request via HTTP to retrieve the KeyResult target date and record ID needed to identify which records to update in Salesforce.
  3. Search KeyResult records in Salesforce. Search records in bulk using SOQL query in Salesforce to find all KeyResult records where today is before the target date, then prepare them for update.
  4. Update descriptions via HTTP. Update the KeyResult record description via HTTP with the current date and total record count so Salesforce reflects the latest sync state.
  5. Log sync completion to job report. Log a message to the job report with the record count and update status so someone can verify the automation ran successfully.