Tag: EntityType code in D365

Browsers - How to get client browser type in MSCRM?

How to get client browser type in MSCRM?

There might be a requirement where you need to find out the type of your browser and according to execute some code snippet. The getClient() method can be used to get the type of the browser. It returns a value to indicate which client the script is executing in. Example: //Sample Code function getClientName() { var clientName = Xrm.Page.context.client.getClient(); alert(clientName); } This example returns the value as: Web in case of Web Browser Outlook in case of Outlook Client Mobile in case of Mobile Browser Note: Use getClient() method instead of the removed isOutlookClient() method. Happy CRMing!!!

Continue reading