Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Client API method to identity MS Dynamics 365 or PowerApps

Posted on by 90

I have same code base uploaded on Dynamics 365 environment and PowerApps environment. In PowerApps environment Marketing List, Lead, Opportunity entities are not available.

So I need to identity by JavaScript client api that I am in 365 or PowerApps environment and according to it will enable or disable functionality to be executed.

Please suggest any client api method I can use to achieve this requirement.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Client API method to identity MS Dynamics 365 or PowerApps

    Hello,

    You can try to get metadata let's say of opportunity and if call fails - you're in pure CDS environment (I believe you meant that as PowerApps). If call returns the data - you're in the Dynamics environment.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans