Sync staff records from REST API to Salesforce on schedule
Recipe ToolsMarketingDeveloper ToolAPI IntegrationCRM
What it does
When the specified interval triggers, this automation sends a REST request to fetch staff data from an external system. It stores the response, checks the status, and upserts matching records to Salesforce so the team has current staff information.
Who it's for
IT teams who need to keep Salesforce staff records in sync with an external system on a regular schedule.
How teams use this
Sync staff on a daily schedule
Run the REST request and Salesforce upsert every morning so staff records stay current without manual intervention. The lookup table keeps a history of each sync.
Notify on REST request failures
Add a condition to check the REST response status and send an alert when the request fails. Only successful syncs proceed to Salesforce.
Sync to a different Salesforce object
Point the upsert step to a custom Salesforce object instead of Staff so the same schedule works for other record types. The REST request and lookup table steps remain unchanged.
How it works
- Trigger on a specified interval. At the scheduled time, this automation runs and begins fetching the latest staff data from the external source.
- Send REST request for staff data. Send a REST request to retrieve staff records from the external system. The response status is checked to confirm the request succeeded before proceeding.
- Store response in lookup table. Add the REST response to Table1 lookup table so the data is available for the next steps in this automation.
- Upsert staff records to Salesforce. Upsert the staff records to Salesforce. If the status shows a record was created, log the success. Otherwise, log the outcome to the job report.