USD – Announcements

I was recently asked how you could use CRM announcements within Unified Service Desk (USD), well to be honest I am still “playing” with the best location to show announcements but I do think the concept of being able to broadcast announcements to call handlers directly within USD has some merit.

So here I describe the basics of showing announcements in USD. The following steps are involved;

  1. Create some announcements!
  2. Create a webresource to display announcements
  3. Create a hosted control to show the announcements
  4. Create an action to navigate to the announcements web resource
  5. Trigger the navigate action when USD desktop loads

STEP ONE – Create some announcements

You can find the announcements in the administration area of settings within CRM. Simply create yourself a couple of announcements as test data. Just so you know your web resource is going to work! You can define some better ones later. My first test announcement looked like the one below.

STEP TWO – Create a webresource to display announcements

Using notepad (or any editor) create a file called “Annoucements.htm” and include the following html.

Whilst researching this capability I found some simpler looking html but that didn’t work with my CRM2015 on-premise solution. But the following html worked. I will test it later on an on-line solution but I believe this will work in all situationshtml Ann

Once you have this file you’ll need to use customizations in your CRM settings to load the htm file as a web resource. Not forgetting to publish! See example below;

At this point, make a note of the URL that is created. You’ll need it later!

At this point you could include the web resource in a standard CRM Dashboard. Just to prove it is working before moving to the next stage.

STEP THREE – Create a hosted control to show the announcements

Nothing complicated here, just create a hosted control. Notice that the USD component type is “CRMPage” , it isn’t global and I have decided to display in the “RightPanel”. You could use any panel!

Note: When I tested my app I found that sometimes clicking on links within an announcement gave me errors. If you experience this try changing the hosting type from wpf to IE as that solved it for me.

STEP FOUR – Create an action to navigate to the announcements web resource

Next I created a simple action to navigate to the web resource I’d created. Again pretty simple stuff.

My action on my hosted control for announcements, which I just created contains the url I noted uploaded my web resource. (Minus my server / organisation)

STEP FIVE – Trigger the navigate action when USD desktop loads

Finally you’ll need to decide when to trigger the action. I decided to load the announcements when USD loads. So I added the action to the “DeskTopReady” event of my global container.

My announcements tab looks like this. I’ll need to add some polish like adding a navigation toolbar. And I might decide to refresh the content periodically. (Maybe each time I close a session or something.) But hopefully this post has given you enough information to implement your own announcement functionality in USD.

5 thoughts on “USD – Announcements

  1. Hi sir, can we do something in USD either functionally or technically wherein if a user make some changes in dynamics CRM then it will resultant a pop-up in USD, I myself have a blur idea, so can’t explain much ? Any comment ?


    • You can use the “RUNXRM” action to trigger an alert. (Popup)

      Having the data portion of an RUNXRM to “alert(“Hello World”);” would give a up pop-up showing Hello World. You could create actions in USD to do this, maybe with some conditions to decide when it should be triggered. (You could for example, trigger an action after a contact record has loaded that puts up a pop-up if we are missing a phone number, or the contact is dead etc etc.)

      Although alternatively (and maybe better) would be to add notifications / alerts into your CRM forms.

      In the past I have favoured keeping this type of logic in my CRM forms. As I like to try to keep the business logic in my CRM forms and the user interface stuff within USD. As that way the CRM entities can still be used outside of USD with similar functionality. However I admit that this conceptual split of user interface and business logic hasn’t always been achievable!

      Liked by 1 person

  2. Pingback: Learning Unified Service Desk | Microsoft Dynamics CRM and Unified Service Desk

  3. Pingback: USD – The Book | Microsoft Dynamics CRM and Unified Service Desk

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s