Checking for USD with window.IsUSD

2 Comments

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:

  if(window.IsUSD == true) {
      alert("Running from USD");
  } else {
   alert("Not running from USD");
 }

And run it within Dynamics 365, we will see:

And in USD:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

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 *