USD – RunXrmCommand

In Unified Service Desk (USD) you can use the RunXrmCommand to interact with your CRM forms.

The example I’ve given below is an action call which will expand a tab on my forms called “stats”.

Xrm.Page.ui.tabs.get("stats").setFocus();
Xrm.Page.ui.tabs.get("stats").setDisplayState("expanded");

 

I have played around with other javascript, some things I expect to work don’t!

A couple of useful examples that do work include (I will add more as I confirm what works);

Display a notification in the notification bar.

Xrm.Page.ui.setFormNotification("Stats Opened", "INFO", "1");

Give an alert.

alert("Hello Stats");

3 thoughts on “USD – RunXrmCommand

  1. Pingback: Learning USD | My experiences with Microsoft Dynamics CRM

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

  3. Pingback: USD – The Book - Microsoft Dynamics CRM Community

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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