Send demographics feed to Salesforce via API
API toolWorkatoDeveloper ToolAPI Integration
What it does
When someone sends a request to the demographics feed endpoint with a valid access token, this automation validates the token. It pushes consumer demographics data to Salesforce and returns error responses if validation fails or Salesforce rejects the request.
Who it's for
Engineering teams who integrate health consumer data into Salesforce through a secure API.
Apps used
How teams use this
Validate tokens before pushing data
Require a valid sf-access-token header on every demographics feed request so unauthorized consumers cannot push data to Salesforce. The validation happens before any data is sent.
Integrate health data into Salesforce
Push consumer demographics from a health platform directly into Salesforce via the API so the sales team has current data without manual entry. The flow handles token validation and error responses.
Add request logging for audit trails
Include a step that logs each demographics feed request with the consumer identifier and timestamp so the team can track which data was pushed and when. Only successful requests are logged.
How it works
- Receive demographics feed request. Listen for a request to the demographics feed endpoint with the sf-access-token header and consumer demographics data in the body.
- Validate the access token. Check that the sf-access-token header is present in the request. Return a 401 Unauthorized response if the token is missing or invalid.
- Send demographics to Salesforce. Send the request to the Salesforce demographics feed endpoint with the consumer token mapped to the Authorization Bearer header and demographics data in the body.
- Handle Salesforce errors. Catch Salesforce API errors and connection failures. Return a 420 error if Salesforce rejects the request, and prevent retries on failure.