Vlocity Facts #50 || Call a Decision Matrix from an Integration Procedure
In previous post we have used Integration procedure as REST API.
In salesforce we use Assignment rules to assign cases to particular queues. In this post we will assign case to queues by using decision matrix.
For this example I'm going to use below mentioned json.
{
Follow these Steps to implement the use case:
1. Navigate to Business Rule Engine from app launcher, select look up tables and create new look up table by selecting "Decision Matrix".
3. Once decision matrix has been created navigate to related tab and open the version which has been created by salesforce.
4. Add the columns or if you have csv file as well you can upload.
Note: Based on multiple input options single output will be given in the response.
Create csv file in that way.
5. Once you click on "Add Column" button you need to enter the column header, Header type whether it is input or output and data type.
6. After adding columns now add rows.
Note: In QueueName I have added api names of the queues which I have created in salesforce.
7. Activate the version by mentioning the start and end date.
------------------------------------------------------------------------------------------------------------------------
Now navigate to Integration procedure which we have created in previous post and create new version.
Using Integration Procedure as Rest API
After "ErrorHandlingResponse" set value drag and drop decision matrix action and select recently created decision matrix by passing input values.
By using Data Mapper extract get the queue Id and assign that Id to owner field of the case record.
Note: In this integration procedure I'm assigning milestone assignment as well by using decision matrix.
-------------------------------------------------------------------------------------------------------------------
Decision Matrix:
To add on :- We can use lookup table type instead of decision matrix if we need multiple outputs based on some custom logic.
Comments
Post a Comment