Route Salesforce case updates based on time logic

UtilitiesCRMMarketingSales

What it does

When Workato Service receives a call to process a vendor response, this automation searches Salesforce for the case. It updates the case and returns an immediate or delayed success response based on a time calculation.

Who it's for

Operations teams who handle vendor responses and need to update case records in Salesforce with conditional logic.

How teams use this

Process vendor responses with immediate success

When the time calculation indicates immediate success, update the case right away and return a success response so the vendor knows their response was received and processed.

Handle delayed vendor response processing

When the time calculation indicates a delay, update the case and return a delayed success response so the vendor is notified their response will be processed later in the workflow.

Notify teams when cases are missing

Extend this automation to include a notification step when no case is found, so the team can investigate why a vendor response has no matching record in Salesforce.

Log all vendor response attempts

Add a logging step to record every vendor response call, including success and error outcomes, so the team can audit vendor interactions and track response patterns over time.

How it works

  1. Receive vendor response call. Workato Service receives a real-time call to process a vendor response with case details and sends it to the automation.
  2. Search Salesforce for the case. Search Salesforce for a case matching the vendor response. If no case exists, the job stops with an error message.
  3. Get the current workspace time. Retrieve the current time in the workspace timezone to calculate whether the response should succeed immediately or with a delay.
  4. Update the case in Salesforce. Update the case record with the vendor response details and return the appropriate success response to the caller based on the time calculation.