Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Identifying client type - Web or USD?

(0) ShareShare
ReportReport
Posted on by 985

Hi all

I have been trying to find out if there is a method I can use to determine whether a current user is using the Web client or the Unified Service Desk, as the solution will contain some custom web resources, which don't seem to open the same way in USD as they do in the web client. As a result, I would like to be able to interrogate the client to find out which one is in operation. 

I can see context.client.getClient() and context.client.getFormFactor() in the SDK documentation, but they don't seem to give the information I am after, has anyone got a reliable method of determining this?

*This post is locked for comments

  • Verified answer
    Brad Sprigg Profile Picture
    Brad Sprigg 985 on at
    RE: Identifying client type - Web or USD?

    Thanks for the reply Jason. I think I have found a useable solution, I've added an Action Call to the BrowserDocumentComplete event of the Hosted Control of the Incident, running the RunXrmCommand UII action of the Hosted Control. Using that I make a change on the form which I can then detect either through Javascript or as a condition to be detected by the custom button on the ribbon that opens the custom web resource. A roundabout solution but it seems to work.

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: Identifying client type - Web or USD?

    Hello Brad;

    Your definitely right that the getclient doesn't have anything in regards to USD related client. I believe this is because USD opens CRM in an IE frame which means it would always be a web browser. I can't say I'd know a way of determining if it's in USD.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans