Merge salesforce contacts with hubspot crm one api
Unified CRM contact for sales dashboards
Parallel fetch Salesforce Contact and HubSpot CRM contact into one JSON object. For "merge salesforce contacts with hubspot crm one api", store SALESFORCE_ACCESS_TOKEN, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api with an rc_live_ client token.
Waterfall latency from multiple Salesforce and HubSpot requests
Frontend / Web widgets often await Salesforce and HubSpot sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.
- Race conditions between parallel manual fetches
- Higher mobile data usage from redundant JSON
- Timeouts when any upstream exceeds cellular RTT
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Store SALESFORCE_ACCESS_TOKEN, HUBSPOT_ACCESS_TOKEN in the vault. Frontend / Web never embeds the raw secret, only a revocable rc_live_ client token.
Target the real upstream URL
Use GET against https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}}. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).
Call from Frontend / Web
Call https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api with a restricted rc_live_ client token. Frontend / Web never sends upstream secrets.
const res = await fetch('https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_merge-sa",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "merge-salesforce-with-hubspot-api"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"salesforce_contactId": "sample",
"salesforce_email": "sample",
"hubspot_contactId": "sample",
"hubspot_email": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 2
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 4
- Payload
- 252 B to 115 B (-54%)
curl -X GET "https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Is it safe to log Salesforce responses in Frontend / Web?
Use scoped tokens where the vendor allows them on merge-salesforce-with-hubspot-api. Admin keys stay {{secrets.*}} references only.
When does edge caching apply to this recipe?
merge-salesforce-with-hubspot-api keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache.
What happens if an upstream step times out?
Upstream steps in merge-salesforce-with-hubspot-api honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
- DefinitionAPI Composition
- DefinitioniPaaS (Integration Platform as a Service)
- DefinitionReverse ETL
- Stack guideWeb Frontends safe & unsafe practices
- Stack guideSalesforce safe & unsafe practices
- Stack guideHubSpot safe & unsafe practices
- Official docsWeb Frontends documentation
- Official docsSalesforce documentation
- Official docsHubSpot documentation
Deploy this Frontend / Web + Salesforce, HubSpot Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.