Recently we implemented Unified Routing for one of our projects, and as part of testing we were supposed to add multiple users to different queues (advanced queues in case of unified routing).
So we were looking for a way to do this either through any existing tool or programmatically.
Well, using the Manage NN relationships XrmToolBox plugin we can add users to the queue. (Thanks to Prashant for suggesting this)
Just as an example, we want to add the below users
to the following Queue named Test, which currently has only one user added to it.
Below is the sample CSV file we have created having the name of the Queue and the email id of the users to be added.
Now let us open the Manage NN relationships tool and specify the appropriate values there.
Here we have specified the First Entity as Queue and the Second Entity as System User.
For Queue we have selected Name and for System User, we have specified Primary Email as the attribute to be considered while importing the data.
Click on Browse and load the file, followed by a click on the Import button to start the process.
As we have received the Success result, let us refresh our Queue to see if the users were added to the Queue or not.
As expected we can see the users added to the Test Queue.
We can also add users programmatically by using the AddPrincipalToQueue Request class.
We need to populate the Principal and QueueId property as shown below.
More on AddPrincipalToQueueRequest.
Hope it helps..
One thought on “How to – Add users to the Queue – using Manage NN relationships XrmToolBox Plugin and AddPrincipalToQueueRequest (Dynamics 365)”