Look up Case Status by Number
You can use an Input IVR together with a data dip to look up the status of a case in Salesforce and play it back to the caller.
In the Input IVR, ask the callers to enter their case number:
![case status by number.png](https://files.readme.io/724d602-input_ivr_1.png)
Next, configure a Salesforce data dip exit in which the case status is retrieved:
![Look up case status by number 2.png](https://files.readme.io/8193005-salesforce_data_dip.png)
SELECT Id, Owner.Email, CreatedDate, Status, Subject FROM Case WHERE Status='New' AND Priority='High' AND CreatedDate=LAST_N_DAYS:7 AND (ContactPhone = '%{current_flow.source_address}' OR ContactMobile = '%{current_flow.source_address}' OR ContactFax = '%{current_flow.source_address}') ORDER BY CreatedDate DESC LIMIT 1
Finally, in the Exits tab you can add an Assignment and Dial component to send the call to the Support line when the query succeeds:
![Case Lookup_OK exit.png 516](https://files.readme.io/63a507c-send_to_support.png)
This way, before answering the call, the Support team can be informed about the case status through Conversations (if the case_status variable is added as a context variable).
Updated about 1 year ago