Introduction:
In a recent project while working on client-side scriptings, we had come across a requirement where we interact with Dynamics 365 CRM data using WebAPI and query expressions. In most cases, we needed the current Model-driven app AppId to build the WebAPI URLs. We had achieved this by using Dynamics CRM Client API references.
With the help of Client API references, we can read the current Model-driven app details. Please find the Client API references below, using which we can get the current Model-driven app details.
- getCurrentAppProperties
With the use of getCurrentAppProperties client API reference, we can get the current Model-driven app details. Please find the code below:
var globalContext = Xrm.Utility.getGlobalContext(); globalContext.getCurrentAppProperties().then( function successCallback (appDetails) { alert('App Details found'); }, function errorCallback() { alert('Error'); });
- getCurrentAppName
With the use of getCurrentAppName…
Source link
More About This Author
-
Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.
Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.
Array
- Dyn365CE26 April 2024Webinar: A technical deep dive into How Copilot & Generative AI Can Transform Business Productivity
- Dyn365CE26 April 2024Combine Location Intelligence with Artificial Intelligence within Dynamics 365 CRM
- Dyn365CE25 April 2024Understanding Key Phrase Extraction in Power Automate for Text Analysis
- Dyn365CE24 April 20246 User-Friendly steps to connect Dynamics 365 CRM with Mailchimp – Effortless Integration!