Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 2 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
If you read my blog I hope you know that I love answering questions about Unified Service Desk (USD) for Microsoft Dynamics CRM. Today I was asked a great question about how to open an associated view whilst creating a session.
I thought this was a great question as it might be a common requirement to open tabs containing associated views of cases or opportunities as an account loads. (Or any associated view for that matter.) Commonly I see these views being opened in tabs when users click on toolbar buttons, why not save that click and open the tab automatically?
The scenarios for my example is this, you open an account from a search screen or maybe from a dashboard. Selecting the account will create a session and open the account tab in the session. But you’d also like to open another tab at the same time containing an associated view of cases.
I am going make an assumption here that you are already able to open an account in a new session. But you need to alter its window navigation to open the associated view.
The steps involved are as follows;
Step One – Create a hosted control
If you haven’t got one already you will need a hosted control to hold your associated view. Mine looked like this;
This field is not selected as I want my associated view to be part of the session.
I have been asked how to show the associated view as a global tab, that is as simple as selecting this option!
You could alternatively use MainPanel or even FloatingPanel.
Step Two – Create an action to display associated view
Again, if you haven’t got one already you will need an action to display the associated view. In my example I have gone with cases for an account. Hopefully you can see how to adapt this action for other entities. (Such as opportunities from a contact etc.) My action looked like this;
The hosted control we created in step one!
Step Three – Create an ExecuteOnDataAvailable action.
Next you will need an ExecuteOnDataAvailable action! Why???? The reason is that as the navigation rule runs to create your session the account details might not yet have loaded into the replacement parameters. And if you try to run your action to view the associated actions before that has happened it will fail.
I got round that issue with an ExecuteOnDataAvailable action that will pause processing until the required replacement parameter is available.
My ExecuteOnDataAvailable action look like this;
TIP: If this action doesn’t exist simply create a new uii action on your CRM Global Manager!
As this is the replacement parameter I wanted to wait for before continuing.
Having saved my ExecuteOnDataAvailable action I added my action to display the associated view as a sub action. As shown below.
You access the sub actions from the navigation ribbon the ExecuteOnDataAvailable action. All we are doing here is saying which action(s) to run when the data is available.
Step Four – Add an action to your window navigation rule.
Finally, we need to edit our window navigation rule that creates the session. My existing navigation rule looked like the one below. It is simply opening a session when the account is selected.
If you need help on how to create a session I have blogged on this before here.
What I needed to do next was alter the actions that run when my session starts. As shown below I simply added the action I previously created.
Now when I open an account an extra tab shows in my left panel. Clicking on that panel will show the cases associated to the account.
Hopefully this post will have been useful if you want to open associated views as sessions are created. J
Business Applications communities