This guide will focus on configuring different call paths for users in a certain group for outbound calls. The example is going to use only recording calls in the Support group but this can be customised.
The Build
Search for the Routing Policy tab using the app launcher (or 3×3 dots in the top left).
Click on the ‘Outbound Calls’ policy.
Please make sure you are only making these changes out of hours as this could disrupt ongoing outbound calls. This policy also affects all outbound calls in the whole org so be aware when implementing any changes!Break the connector near the beginning of the policy (before any paths split) or where you want the paths to differ.
Add a new action container and put a query object app inside it.
Configure the query object app like this:
Name this item: Query NB User
Result Set: NBUser
Trigger When:
Uncheck ‘Records found’
Check ‘Records not found’ and ‘Error Returned’
Record Type: Natterbox User
Filter results:
Field: User Extension
Value: $(CallerNumber)
Return Fields: Record ID
Connect the path from the app to the next container.
Add another query object container in the same container and configure it like this:
Name this item: Query Group Member
Result Set: GroupMember
Trigger When:
Uncheck ‘Records found’
Check ‘Records not found’ and ‘Error Returned’
Record Type: Group Member (if there are two ‘Group Member’ objects, toggle on ‘Show Salesforce API Names’ and select ‘nbavs__GroupMember__c’)
Filter results:
Field: User
Value: $(SForce_NBUser.Id) - from the query natterbox user
+Add Fields (AND)
Field: Primary
Value = true
This only works if you use the primary checkbox on the groups.
Return Fields: Group (this will be the ID of the group)
Add a Rule App in the same container
Select ‘Evaluate’
Property: $(SForce_GroupMember.nbavs__Group__c)
Value: [find the ID of the desired group]
To find the item, open the group and find the 18 characters in the URL before ‘/view’You can add rules for multiple groups if desired.
From the rule app, add a new action container with a ‘record & analyse app’.
Set up the recording app as desired or use something like One-Sided Recordings.
Connect your paths to the desired path and it should look something like this: