[New post] From Shantinath Patil: Schedule time with a virtual support advisor
A posted: " Let's think of you as a support agent. You get a call from a customer asking for an appointment for some questions he has on the case and wants to talk with the case owner. So what can do you What will you do in this "case?" Salesforce Scheduler can h"
Let's think of you as a support agent. You get a call from a customer asking for an appointment for some questions he has on the case and wants to talk with the case owner. So what can do you What will you do in this "case?"
Salesforce Scheduler can help you in this "case". Let's drill down on what all we need to accomplish this:
Case owner as a Service Resource
Case reference to Appointment
A flow
Quick action on Case to initiate the flow.
A logical flow of the approach we will take in this use case will look like the following:
Get Case Details
Since this flow will run on the case, we need to get the details of it. First, we can set the "recordId" input parameter to get the current case, automatically giving us the case Id. Then, using this variable, we can query the case using the "Get Records" element in the flow.
Note that we need AccountId to map it to the ParentRecordId of the Service Appointment. OwnerId is needed to get the related Service Resource.
If we want to tag the current CaseId, we can create a new lookup on Service Appointment. A custom field is needed since Service Appointment can only support Account, Lead, and Opportunity except for Case! To ensure that value is populated in that lookup, we can override the JSON we pass in the final Save Action defined in the flow. For more details, you can refer to the blog here: https://unofficialsf.com/build-your-own-appointment-review-screen/. For now, we can skip it.
We can leverage this functionality for our use case. Since we want our case owner to be the Service Resource, we can add the Service Resource Id from the previous step to filterByResourceIds. Additionally, we can make anonymous booking as true and resource booking as false. This will make sure that we skip the OOB triage screen and resource selection screen.
The advantage we get from this is if the case owner is not a Service Resource, existing logic will fetch any available resource anonymously. You will not have to worry about resource selection. End to end experience will be very seamless for the agent who is booking that appointment.
Once all the nodes and assignment is done, you can test the flow using the "Debug" option and activate it once it's working as expected.
Setup
After this step, it's up to you how you want to distribute the flow. For this blog, we are using Case Action to create a new appointment. Since the "recordId" flow variable is set for "Available for input" in the flow, this action will automatically set it to the current record on the detail page.
You can add this action to the case layout. The end-to-end flow should work something like this:
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.