web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    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.

  • Verified answer
    Brad Sprigg Profile Picture
    985 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
Ciprian  P Profile Picture

Ciprian P 2

#3
ZS-27011425-0 Profile Picture

ZS-27011425-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans