Sync proposal updates from webhook to Salesforce
Recipe ToolsCRMMarketing
What it does
When a new event arrives via HTTP webhook, this automation searches Salesforce for matching offers. It logs results to the job report so someone knows if the proposal was found and its version status.
Who it's for
Sales operations teams who need to track proposal updates in Salesforce without manual checks.
How teams use this
Track proposal versions in Salesforce
When a proposal version updates via HTTP webhook, find the matching offer in Salesforce and log whether it exists. The team reviews the job report to confirm the sync worked.
Alert on missing offers with error handling
If the SOQL search finds no matching offer, stop the job with an error and log it so the team knows a proposal arrived without a corresponding Salesforce record.
Monitor version conflicts between systems
Check whether the incoming proposal version is newer than or equal to the Salesforce offer version, and log the comparison result. This helps the team spot stale records.
Extend search with custom fields
Add custom field filters to the SOQL WHERE clause so the search only matches offers that meet specific criteria like region or product type. This narrows results to relevant records.
How it works
- Receive proposal update via HTTP webhook. A new event arrives in real time via HTTP webhook with proposal details like name, version, and status for processing.
- Search for matching offers in Salesforce. Search Salesforce for offers using a SOQL query with a WHERE clause to find records that match the incoming proposal data.
- Log search results to job report. Log a message to the Workato Service job report showing whether offers were found and their version details so the team can review the sync outcome.
- Stop job if no offers found. If the search returns zero offers, stop the job with an error and log it so the team knows a proposal arrived without a matching Salesforce record.
- Compare and log version status. Check whether the incoming proposal version is newer than or equal to the Salesforce offer version, and log the comparison result to the job report.