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
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.
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.
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156