Home › Unified Service Desk › Checking for USD with window.IsUSD
Unified Service Desk · Sep 4, 2017 · 1 MIN READ

Checking for USD with window.IsUSD

To check from JavaScript if Dynamics 365 is being accessed from within the USD application or not within the USD application, use the window.IsUSD property.

For example, if we add the code:

[sourcecode language=”JavaScript”] if(window.IsUSD == true) {
alert("Running from USD");
} else {
alert("Not running from USD");
}
[/sourcecode]

And run it within Dynamics 365, we will see:

And in USD:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

2 Responses to Checking for USD with window.IsUSD

  1. Hi Carl,
    When i am running the code in dynamics 365 ita working fine but if in USD its not working means its throwing alert message like “Not running from USD”.
    Please provide your suggestion.

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.