Salesforce with Astro
I connect the site's forms to Salesforce so submissions reach the right records and the right owners, with accurate attribution, duplicate handling and an alert when something fails.
Salesforce at a glance
- What I do
- Site forms that create the right Salesforce records, preserve attribution and fail visibly when Salesforce rejects a submission.
- Typical setup
- Adds 3–5 days
- How it is bought
- Part of a migration scope, or a Continuous development request once the site is yours
- Category
- CRM and email
Setup
How I set up Salesforce
The risk is not that the form cannot submit. The risk is that it submits, the visitor sees success and Salesforce quietly rejects the record because a required field, duplicate rule or permission setting got in the way.
I map the submission path first and test it with real Salesforce behavior. Then I add the useful parts: ownership, campaign attribution, duplicate handling, queueing for retries and alerts when something breaks.
Web-to-Lead can be the right answer for simple lead capture, especially when speed matters. For forms tied to revenue, I usually prefer a webhook and server-side API write because failures can be logged, reported and fixed instead of guessed at later.
How the handoff works
- 01
Submit
The form posts from the site
- 02
Record
Created on the agreed object
- 03
Attribution
Campaign and source on the record
Key handoff
- 04
Routing
Assignment rules pick an owner
- 05
Verify
Record created, attribution checked, owner assigned
Why this is the key handoff
The thank-you page only confirms what the visitor saw. A thank-you page only confirms what the visitor sees. I check that the lead exists in Salesforce, carries its campaign attribution and reached the right owner. If something fails, the right person is told.
Included
What gets connected
-
Form submissions into Leads, Contacts or the agreed Salesforce object model
-
UTM, referrer, campaign and source fields
-
Assignment, owner and campaign rules
-
Duplicate handling and validation feedback
-
Salesforce data back to the site where it is safe and useful
Before you add it
What to watch out for
- 01
Validation rules reject writes the website may not surface
A required field, a picklist value or a rule an admin added later makes the write fail. Without error handling the page may show success even when Salesforce rejects the record, so whether it can say otherwise depends on how the submission path was built.
- 02
Web-to-Lead and the API fail differently
Web-to-Lead works for straightforward lead capture and needs almost no infrastructure. An API write takes more setup and gives more control over validation, error reporting and retries, which is what you want behind a form that feeds your sales process.
- 03
Lead and Contact are not the same object
Which one a submission creates depends on how the org runs its funnel, and getting it wrong means records that are technically present and operationally invisible.
- 04
Duplicate rules can reject a lead entirely
An org with strict matching can refuse the write, which is usually correct behavior. I agree up front what should happen to those submissions, so a blocked duplicate becomes a decision rather than a missed follow-up.
More tools
Keep exploring
-
HubSpot
Connect Astro and HubSpot so forms, contacts, attribution and tracking work without giving up the site's design.
Adds 2–4 days
-
Pipedrive
Send website leads into Pipedrive as complete people, organizations and deals, with source and stage already set.
Adds 2–4 days
-
Mailchimp
Connect signup forms to Mailchimp with correct audiences, merge fields, tags and double opt-in behavior.
Adds 1–2 days
Let me plan your next step.
I can scope a migration. Send a brief and I will reply by email with next steps.