{"id":30948,"date":"2022-03-10T12:33:57","date_gmt":"2022-03-10T07:03:57","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=30948"},"modified":"2022-03-11T14:00:17","modified_gmt":"2022-03-11T08:30:17","slug":"how-to-read-the-current-model-driven-app-details-using-client-api-references","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/","title":{"rendered":"How to Read the current Model-driven App details using client API references"},"content":{"rendered":"<h2><strong>Introduction:<\/strong><\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>1. getCurrentAppProperties<\/p>\n<p>With the use of getCurrentAppProperties client API reference, we can get the current Model-driven app details. Please find the code below:<\/p>\n<pre class=\"lang:css gutter:true start:1\">var globalContext = Xrm.Utility.getGlobalContext();\r\nglobalContext.getCurrentAppProperties().then(\r\n\r\nfunction successCallback (appDetails) {\r\n\r\nalert('App Details found');\r\n\r\n}, function errorCallback() {\r\n\r\nalert('Error');\r\n\r\n});\r\n<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30956\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg\" alt=\"client API reference\" width=\"349\" height=\"183\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg 349w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference-300x157.jpeg 300w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><br \/>\n2. getCurrentAppName<\/p>\n<p>With the use of getCurrentAppName client API reference, we can get the current Model-driven app AppName. Please find the code below:<\/p>\n<pre class=\"lang:css gutter:true start:1\">var globalContext = Xrm.Utility.getGlobalContext();\r\n\r\nglobalContext.getCurrentAppName().then(\r\n\r\nfunction successCallback(appName) {\r\n\r\nalert(appName);\r\n\r\n}, function errorCallback() {\r\n\r\nalert('Error');\r\n\r\n});\r\n<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30957\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/2client-API-reference.png\" alt=\"client API reference\" width=\"116\" height=\"50\" \/><br \/>\n3. getCurrentAppUrl<\/p>\n<p>With the use of getCurrentAppUrl\u00a0client API reference, we can get the current Model-driven app AppUrl. Please find the code below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-30958\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/3client-API-reference.jpeg\" alt=\"client API reference\" width=\"566\" height=\"86\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/3client-API-reference.jpeg 566w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/3client-API-reference-300x46.jpeg 300w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/p>\n<h3><strong>Conclusion: <\/strong><\/h3>\n<p>In this way, with the help of Client API references we can easily get details of the current Model-driven app.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/integrations\/inolink-quickbooks-microsoft-dynamics-crm\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-30961\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/inolink.jpg\" alt=\"\" width=\"1028\" height=\"257\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/inolink.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/inolink-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/inolink-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/inolink-660x165.jpg 660w\" sizes=\"(max-width: 1028px) 100vw, 1028px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/\">Read More: How to Read the current Model-driven App details using client\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2354,18,38,2361],"tags":[2575,1194],"class_list":["post-30948","post","type-post","status-publish","format-standard","hentry","category-dataverse","category-dynamics-365-v9-2","category-microsoft-powerapps","category-technical","tag-client-api-references","tag-model-driven-app"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"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.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"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.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"349\" \/>\n\t\t<meta property=\"og:image:height\" content=\"183\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-03-10T07:03:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-03-11T08:30:17+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"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.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#blogposting\",\"name\":\"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to Read the current Model-driven App details using client API references\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/1client-API-reference.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#articleImage\",\"width\":349,\"height\":183,\"caption\":\"client API reference\"},\"datePublished\":\"2022-03-10T12:33:57+05:30\",\"dateModified\":\"2022-03-11T14:00:17+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#webpage\"},\"articleSection\":\"Dataverse, Dynamics 365 v9, Microsoft PowerApps, Technical, client API references, Model Driven App\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"position\":3,\"name\":\"Microsoft PowerApps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#listItem\",\"name\":\"How to Read the current Model-driven App details using client API references\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#listItem\",\"position\":4,\"name\":\"How to Read the current Model-driven App details using client API references\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/\",\"name\":\"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"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.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/03\\\/how-to-read-the-current-model-driven-app-details-using-client-api-references\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2022-03-10T12:33:57+05:30\",\"dateModified\":\"2022-03-11T14:00:17+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks","description":"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.","canonical_url":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#blogposting","name":"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to Read the current Model-driven App details using client API references","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#articleImage","width":349,"height":183,"caption":"client API reference"},"datePublished":"2022-03-10T12:33:57+05:30","dateModified":"2022-03-11T14:00:17+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#webpage"},"articleSection":"Dataverse, Dynamics 365 v9, Microsoft PowerApps, Technical, client API references, Model Driven App"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","name":"Microsoft PowerApps"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","position":3,"name":"Microsoft PowerApps","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#listItem","name":"How to Read the current Model-driven App details using client API references"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#listItem","position":4,"name":"How to Read the current Model-driven App details using client API references","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","name":"Microsoft PowerApps"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/","name":"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks","description":"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.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2022-03-10T12:33:57+05:30","dateModified":"2022-03-11T14:00:17+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"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.","og:url":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg","og:image:width":349,"og:image:height":183,"article:published_time":"2022-03-10T07:03:57+00:00","article:modified_time":"2022-03-11T08:30:17+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to Read the current Model-driven App details using client API references - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"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.","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/03\/1client-API-reference.jpeg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"30948","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 07:27:04","updated":"2025-07-04 09:10:18","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/\" title=\"Microsoft PowerApps\">Microsoft PowerApps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Read the current Model-driven App details using client API references\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"Microsoft PowerApps","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/"},{"label":"How to Read the current Model-driven App details using client API references","link":"https:\/\/www.inogic.com\/blog\/2022\/03\/how-to-read-the-current-model-driven-app-details-using-client-api-references\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/30948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=30948"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/30948\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=30948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=30948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=30948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}