{"id":3065,"date":"2018-07-09T09:45:51","date_gmt":"2018-07-09T09:45:51","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=3065"},"modified":"2018-09-18T07:05:48","modified_gmt":"2018-09-18T07:05:48","slug":"dynamics-365-app-specific-url-for-your-entity","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=3065","title":{"rendered":"Dynamics 365 App Specific URL for your entity"},"content":{"rendered":"<p>We all know that we can create group of\u00a0our Dynamics 365 CE entities in a more logical manner using apps, if you are interested in creating new app, you can refer our <a href=\"https:\/\/himbap.com\/blog\/?p=2691\">earlier post for the same<\/a>. In this article we are going to discuss about Dynamics 365 app specific URLs.<\/p>\n<p style=\"text-align: left;\"><strong>Requirement<\/strong>: Let&#8217;s say we have created a custom app and we have requirement to send email with the record URL to other users or may be we want to use it in our script\/code, but we want the record should open in it&#8217;s specific app instead of default custom app.<\/p>\n<p><strong>Solution<\/strong>: To implement above requirement we can use appid or appname, while building record URL. let say we want to send email having contact URL and to open contact record in our custom Contact Center app using appid, we use following steps:<\/p>\n<p>1. First we need to get appid for your app, we can open app designer and copy appid from the URL like below<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3074 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1-300x51.png\" alt=\"appid1\" width=\"300\" height=\"51\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1-300x51.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1-1024x174.png 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1-624x106.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appid1.png 1237w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n2. Now we need to construct entity record URL, if you are new Dynamics 365 CE, I will suggest you to go through this <a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/developer\/open-forms-views-dialogs-reports-url\">KB first<\/a>. We can use following URL to open contact record,<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcontactURL.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3068 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcontactURL-300x62.png\" alt=\"appcontactURL\" width=\"300\" height=\"62\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcontactURL-300x62.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcontactURL-624x129.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcontactURL.png 803w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nbut above URL will open contact record in default Dynamics 365 CE sales app<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcustomapp.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3069 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcustomapp-300x62.png\" alt=\"appcustomapp\" width=\"300\" height=\"62\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcustomapp-300x62.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcustomapp-624x129.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appcustomapp.png 688w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nnow to open contact record in our Contact Center app we can use following URL, here you can see we have added appid in the URL<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3071 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact-300x50.png\" alt=\"appidcontact\" width=\"300\" height=\"50\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact-300x50.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact-1024x169.png 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact-624x103.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appidcontact.png 1124w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><em><strong>Note<\/strong>: Apart from using\u00a0appid, we can also use appname, so for example\u00a0we can use appname=contactcenter<\/em><\/p>\n<p>And now if you will try to navigate this URL it will open from custom app like below:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appconatctcustomapp.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3070 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appconatctcustomapp-300x63.png\" alt=\"appconatctcustomapp\" width=\"300\" height=\"63\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appconatctcustomapp-300x63.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appconatctcustomapp-624x132.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/07\/appconatctcustomapp.png 915w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all know that we can create group of\u00a0our Dynamics 365 CE entities in a more logical manner using apps, if you are interested in creating new app, you can refer our earlier post for the same. In this article we are going to discuss about Dynamics 365 app specific URLs. Requirement: Let&#8217;s say we have created a custom app&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=3065\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,402,522],"tags":[540,537,541,538,539,630],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3065"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3065"}],"version-history":[{"count":9,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3065\/revisions"}],"predecessor-version":[{"id":3323,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3065\/revisions\/3323"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}