{"id":3185,"date":"2016-06-30T16:17:33","date_gmt":"2016-06-30T10:47:33","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=3185"},"modified":"2016-06-30T16:17:33","modified_gmt":"2016-06-30T10:47:33","slug":"how-to-geocode-workflow-for-custom-entities-in-dynamics-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2016\/06\/how-to-geocode-workflow-for-custom-entities-in-dynamics-crm\/","title":{"rendered":"How to make Geocode Workflow for Custom Entities in Dynamics CRM?"},"content":{"rendered":"<p style=\"text-align: justify;\">Maplytics&#x2122;\u00a0ships along with Geocoding workflows to <a href=\"https:\/\/www.inogic.com\/blog\/2016\/06\/geocoding-millions-of-dynamics-crm-records-using-maplytics\/\" target=\"_blank\" rel=\"noopener noreferrer\">Geocoding Dynamics CRM data with Bing Maps<\/a>\u00a0which are further used by Maplytics. We ship this workflow configured for Account, Lead and Contact entities. You can configure custom workflows and add a reference to the Maplytics Workflow assembly to geocode the addresses.<\/p>\n<p style=\"text-align: justify;\"><strong>Steps to Configure Geo-coding Workflows for Custom Entities:<\/strong><\/p>\n<ol>\n<li style=\"text-align: justify;\">Design a new Workflow Process. For this Go \u2192\u00a0Settings \u2192\u00a0Processes and click on New button then, following window will open. Here, enter the process name, select category as Workflow, and select the Entity for which you want to design workflow.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3188\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-1.png\" alt=\"Geocode Workflow\" width=\"626\" height=\"365\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Once you click on OK button, following window will open. Here, set the Scope as organization and in <em>Start when<\/em>: select \u201c<em>Record is created\u201d <\/em>and<em> \u201cRecord fields change\u201d<\/em> For the \u201c<em>Record fields change\u201d<\/em> option, select all of the address fields to ensure the address is geo-coded when any of the address fields is changed as shown in below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-for-custom-entities-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3190\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-for-custom-entities-2.png\" alt=\"Geocode Workflow for custom entities\" width=\"624\" height=\"297\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"3\">\n<li>Then go to Add Step and select the Inogic.Maplytics.Geocoding (5.4.0.4) assembly as shown in below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-crm-3.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3189\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Geocode-Workflow-crm-3.png\" alt=\"Geocode Workflow Dynamics CRM \" width=\"625\" height=\"380\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"4\">\n<li>Then set the address parameter by clicking on Set Properties as shown in below screenshot for the workflow assembly.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/workflow-assembly-4.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3193\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/workflow-assembly-4.png\" alt=\"CRM workflow assembly \" width=\"626\" height=\"380\" \/><\/a><\/li>\n<\/ol>\n<ol start=\"5\">\n<li>Then go to Add Step and add Update Record step as shown in below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Dynamics-CRM-Geocode-Workflow-5.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3187\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/Dynamics-CRM-Geocode-Workflow-5.png\" alt=\"Dynamics CRM Geocode Workflow\" width=\"493\" height=\"337\" \/><\/a><\/li>\n<\/ol>\n<p>In that select the same entity as the one for which the workflow is being configured and then click on Set Properties. Then the following window will open, here set the Latitude and Longitude to the output parameters returned by the workflow assembly as shown in below screenshot.<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/output-parameters-6.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3191\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/output-parameters-6.png\" alt=\"output parameters\" width=\"626\" height=\"146\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/update-process-7.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3192\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/update-process-7.png\" alt=\"update process\" width=\"501\" height=\"338\" \/><\/a>\u00a0Here is the final screenshot of workflow after configuring.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/activate-the-workflow-8.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3186\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2016\/06\/activate-the-workflow-8.png\" alt=\"activate the workflow in crm\" width=\"626\" height=\"294\" \/><\/a><\/p>\n<p>Once you activate the workflow, it will be ready to get the Geolocation i.e latitude and longitude. The workflow will fire on creating and update of address fields and get latitude &amp; longitude.<\/p>\n<blockquote><p><em><strong>Note : If you wish to geocode milions of records\u00a0in Dynamics CRM\u00a0try <a href=\"https:\/\/www.inogic.com\/blog\/2016\/06\/geocoding-millions-of-dynamics-crm-records-using-maplytics\/\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a>.<\/strong><\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Maplytics&#x2122;\u00a0ships along with Geocoding workflows to Geocoding Dynamics CRM data with Bing Maps\u00a0which are further used by Maplytics. We ship this workflow configured for Account, Lead and Contact entities. You can configure custom workflows and add a reference to the Maplytics Workflow assembly to geocode the addresses. Steps to Configure Geo-coding Workflows for Custom Entities:\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2016\/06\/how-to-geocode-workflow-for-custom-entities-in-dynamics-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19,35],"tags":[855,856,862],"class_list":["post-3185","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-maplytics-bing-maps-integration-with-dynamics-crm","tag-geocoding-dynamics-crm-data","tag-geocoding-dynamics-crm-data-bing-maps","tag-geocoding-ms-dynamics-crm-data"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/3185","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=3185"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/3185\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=3185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=3185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=3185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}