Sync Employee to Salesforce from HR systems
Recipe ToolsWorkatoDeveloper ToolAPI IntegrationCRMMarketing
What it does
When someone calls this automation via a function, it retrieves employee data from multiple HR systems and Salesforce. It then upserts the employee record in Salesforce with current information like department, cost center, and lifecycle status.
Who it's for
HR teams who need to keep Salesforce employee records in sync with authoritative HR data without manual updates.
How teams use this
Sync new hires to Salesforce automatically
When HR creates an employee record, this automation pulls their details and creates a matching Salesforce employee record with the right department and cost center codes so sales teams have current information.
Update employee records on department changes
When someone moves to a new department in HR, this automation retrieves the updated department code and upserts the Salesforce record so the employee appears under the correct team.
Exclude terminated employees from Salesforce
Add a condition to check if lifecycle status equals Terminated, and skip the upsert so inactive employees do not clutter Salesforce records. Only active employees sync to the system.
Sync employee data to a different CRM
Replace the Salesforce search and upsert steps with calls to another CRM system so the same HR data flows to multiple platforms without rebuilding the retrieval logic.
How it works
- Receive the employee ID. A function call passes an employee ID to start this automation in real time so the sync begins immediately.
- Gather employee details from HR systems. Retrieve the employee record, lifecycle status, executive vice president, home department code, and cost center code via HTTP requests to HR data sources.
- Map HR codes to standard values. Look up the employee's title and department in the Hibob lookup tables to get the correct codes for Salesforce.
- Search and upsert the employee. Search Salesforce for the employee by Reports To and executive vice president, then upsert the record with all gathered data including department and cost center.