
Working in Customer Service Workspace can feel like juggling multiple cases/conversations at once. Ofcourse we can open records from view which will open in the new workspace tab. I was thinking of opening multiple records on multiple tabs on a single click.
- What's Customer Service Workspace and Why Should You Care About Tabs?
- Quick Clarification: Session vs Tabs
- Example Scenario
- Demonstration
- Conclusion
What's Customer Service Workspace and Why Should You Care About Tabs?
As we all know customer service agents are the primary users for customer service workspace. They'll be working on multiple cases/conversations at once. If they want to cross check or refer any other similar cases they have to switch back to view and open every case records. But my agenda is to cut down the navigation time.
Quick Clarification: Session vs Tabs
Before we jump into the code, let's clear up some terminology:
Session tabs are like your main workspaces - think of them as different projects you're working on Workspace tabs are the individual records within each session - like the specific cases under My Cases.
Example Scenario :
Opening Multiple Case(s) at once a command button is clicked. Let's say an agent is looking at a support case and wants to quickly open the reference of the similar cases from the view to cross check.
Steps:
- Create a Web Resource
- I have created a JavaScript web resource which have a function named OpenNewWorkspaceTab. It will accept only one parameter which is SelectedControlSelectedItemIds. Below is the code.
- Save and Publish the Web Resource
- Create and Configure the Button:
-
First of all, create a command button named "Open in New Tab" in the maker portal.
- Refer the below link to know how to create or customize the command buttons https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/use-command-designer
-
I have configured a button which will execute the JavaScript function when
clicked.
-
As the function requires a parameter, add the parameter "SelectedControlSelectedItemIds". The
button's visbility is based on the record selection, If one or more
records will be selected, the button is visible otherwise it is hidden.
- I have did that using the Show on condition from formula option in Visibility field. And add the below formula to make the button visible based on condition.(Refer the formula bar in the above image for the same)
CountRows(Self.Selected.AllItems)>0
-
First of all, create a command button named "Open in New Tab" in the maker portal.
- Save and Publish the editor.
Demonstration
I have selected three random cases from the view and you'll get to see the button visible.
Click on the button and it will popup a dialog to confirm the opening of new tabs.
If ok is clicked, it will open the new tabs.
Conclusion
I hope this workaround makes navigating the Customer Service Workspace a bit easier for you. It’s a great approach when you’re dealing with just a few records. But if the number of records gets too high, it could slow things down. Also, from what I’ve heard, there might be a limit on how many tabs you can open in the workspace - so it’s a good idea to use this method thoughtfully.
References:
https://learn.microsoft.com/en-us/dynamics365/customer-service/develop/reference/methods/createtab
Have a good day!