Create employer profile and push to onboarding system
When a new account is created in your CRM, its onboarding profile is created in your table, sent to your onboarding system, and the sync result is written back to both places.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-employer-profile-and-push-to-onboarding-system/
Paste into Claude, ChatGPT, Cursor or any agent.
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-employer-profile-and-push-to-onboarding-system
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-employer-profile-and-push-to-onboarding-system/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-employer-profile-and-push-to-onboarding-system - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy create-employer-profile-and-push-to-onboarding-system - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-employer-profile-and-push-to-onboarding-system
zaps/create-employer-profile-and-push-to-onboarding-system/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 5 to fill in
- connections/salesforce.tsThe
salesforceaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/new-record.tsWhat starts it:
salesforcenew_record - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a new Salesforce record of the Account object is created (
salesforce,new_record). - Salesforce looks up the account owner (a User record) by the account's
OwnerIdand takes the owner's email. - Code (plain JavaScript, no app call): turns the semicolon-separated Industry and Sector lists into readable text, normalizes the employee count into a number, and joins the billing address into one line.
- Zapier Tables creates a record in your onboarding table: company name as the title, owner email, website, phone, address, industries, sectors, notes, the Salesforce account ID as the reference, and status
In Progress. - Webhooks by Zapier POSTs the profile as JSON to your onboarding/payroll API, with a bearer token.
- Zapier Tables updates that record with the API's external ID and a sync status (
SyncedorFailed). - Salesforce writes the same external ID and sync status to the account.
If the onboarding API URL is not set, the run stops before step 2 and writes nothing.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
ONBOARDING_TABLE_ID |
The Zapier Table that holds onboarding records; look it up with the user's Zapier Tables connection |
ONBOARDING_API_URL |
The onboarding/payroll API endpoint that receives each profile. It must be an https:// URL |
ONBOARDING_API_TOKEN |
The API's bearer token. A secret: store it in your own setup and never commit it |
SALESFORCE_EXTERNAL_ID_FIELD |
The custom Account field that receives the onboarding system's external ID; look it up with the Salesforce connection |
SALESFORCE_SYNC_STATUS_FIELD |
The custom Account field that receives the sync status; look it up with the Salesforce connection |
Review these defaults with them: SALESFORCE_OBJECT (Account), SALESFORCE_SECTOR_FIELD (Sector__c is a guess, so confirm the org's sector field), and INITIAL_STATUS (In Progress).
Also confirm:
- The onboarding API authenticates with a bearer token. If not, change the headers in the
post-to-onboarding-apistep. - The API returns the new record's ID as
id. If not, changeexternalIdin the code. - The onboarding table's field names match the ones
workflow.tswrites (Title,Owner email,Industries, and so on).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-employer-profile-and-push-to-onboarding-system, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-employer-profile-and-push-to-onboarding-system, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
salesforce(the org that owns the accounts) andzapier-tables(the account that owns the onboarding table) to the user's connections. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-record.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test against a Salesforce sandbox or integration org and a test table, with an Account that exists in that org:
{
"Id": "001XXXXXXXXXXXXXXX",
"Name": "Example Test Co",
"OwnerId": "005XXXXXXXXXXXXXXX",
"Website": "https://example.com",
"Phone": "+1 555 0100",
"Industry": "Technology;Software",
"Sector__c": "Fintech;Payments",
"NumberOfEmployees": "1,200",
"Description": "Test account",
"BillingStreet": "1 Test Way",
"BillingCity": "Sample City",
"BillingState": "CA",
"BillingPostalCode": "94000",
"BillingCountry": "US"
}
Check that the table gains one record with title Example Test Co, owner email filled, Industries as Technology, Software, Sectors as Fintech, Payments, and status In Progress. The API should receive one JSON POST with employeeCount 1200. The record's status should then change to Synced with its external ID filled, and the Salesforce account's sync fields should be written. If run-status tools aren't available, check the result in Zapier Tables and Salesforce directly. Ask the user to delete the test rows; the agent doesn't delete them.
Then publish, and confirm the trigger is active.
Notes
- Nothing is sent until
ONBOARDING_API_URLis a realhttps://URL. Until then the workflow returnsskippedbefore touching any app. - The Salesforce field names in the payload (
Id,OwnerId,Industry, and so on) come from the standard Account object. Sample the trigger to confirm them before testing. - Keep the onboarding API token out of shared copies of this workflow.
- To continue only for qualifying accounts, for example by client type, add a check before the owner lookup. To alert your team on high-priority hires, add a Slack message step after the Salesforce update.