{"id":6156,"date":"2017-08-02T18:33:19","date_gmt":"2017-08-02T13:03:19","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=6156"},"modified":"2020-06-01T13:08:37","modified_gmt":"2020-06-01T13:08:37","slug":"microsoft-flow-create-record-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/08\/microsoft-flow-create-record-in-dynamics-365\/","title":{"rendered":"Microsoft Flow \u2013 Create record in Dynamics 365 using Gmail Connector"},"content":{"rendered":"<h4 style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/h4>\n<p style=\"text-align: justify;\">Recently we received a requirement to integrate a mailbox not configured in CRM and external to CRM with Dynamics 365.<\/p>\n<p style=\"text-align: justify;\">The client had an enquiry mailbox, and they did not want the emails to be created in CRM, and therefore it was not configured. However, they did want that the lead should be automatically created for all enquiries received. That is where <strong><em>Microsoft Flow<\/em><\/strong> came to the rescue. Using Flow, it is possible to design process flows to automate integrations with external systems.<\/p>\n<p style=\"text-align: justify;\">Here we discuss the steps to create a lead in Dynamics CRM for every email received on a Gmail id.<\/p>\n<h4 style=\"text-align: justify;\"><strong>Steps to create the flow:<\/strong><\/h4>\n<p style=\"padding-left: 30px; text-align: justify;\"><strong>1<\/strong>. Go to <a href=\"https:\/\/portal.office.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/portal.office.com<\/a> and click the Flow as shown in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM-1.png\"><img decoding=\"async\" class=\"wp-image-6153 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM-1.png\" alt=\"Create record in Dynamics CRM\" width=\"767\" height=\"283\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\"><strong>2<\/strong>. Click on <strong><em>\u2018Create from Blank\u2019<\/em><\/strong> button as shown in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM2.png\"><img decoding=\"async\" class=\"wp-image-6154 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM2.png\" alt=\"Create record in Dynamics CRM\" width=\"774\" height=\"106\" \/><\/a><strong>3<\/strong>. Select <strong><em>\u2018Gmail \u2013 When a new email arrives\u2019,<\/em><\/strong> it will then ask you for the Gmail credentials, enter the appropriate credentials.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM3.png\"><img decoding=\"async\" class=\" wp-image-6155 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM3.png\" alt=\"Create record in Dynamics CRM\" width=\"619\" height=\"385\" \/><\/a><strong>4<\/strong>. Now select <strong><em>\u2018Inbox\u2019<\/em><\/strong> as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM4.png\"><img decoding=\"async\" class=\" wp-image-6157 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM4.png\" alt=\"Create record in Dynamics CRM\" width=\"615\" height=\"413\" \/><\/a><strong>5<\/strong>. Next, click on <strong><em>\u2018New step\u2019<\/em><\/strong> button and select <strong><em>\u2018Add an action\u2019<\/em><\/strong> as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM5.png\"><img decoding=\"async\" class=\" wp-image-6158 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM5.png\" alt=\"Create record in Dynamics CRM\" width=\"615\" height=\"317\" \/><\/a><strong>6<\/strong>. Then select <strong><em>\u2018Dynamics 365 \u2013 Create a new record\u2019 <\/em><\/strong>as seen in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM6.png\"><img decoding=\"async\" class=\"size-full wp-image-6159 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM6.png\" alt=\"Create record in Dynamics CRM\" width=\"617\" height=\"472\" \/><\/a><\/p>\n<p style=\"padding-left: 30px; text-align: justify;\"><strong>7<\/strong>. Selecting the above option allows us to enter the Organization Name, Entity name of the records we need to create in Dynamics 365 when an email is received, and we can also specify the field mapping as shown below. Once the mapping is done, click on <strong><em>\u2018Create Flow\u2019<\/em><\/strong>.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM7.png\"><img decoding=\"async\" class=\"wp-image-6160 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM7.png\" alt=\"Create record in Dynamics CRM\" width=\"633\" height=\"397\" \/><\/a><\/p>\n<p style=\"padding-left: 30px; text-align: justify;\">The lead will be created in CRM with this mapped data, and the body of the email is copied to lead notes.<\/p>\n<p style=\"padding-left: 30px; text-align: justify;\"><strong>8<\/strong>. Then click on <strong><em>\u2018Done\u2019,<\/em><\/strong> and the flow is now ready to use.<\/p>\n<p style=\"padding-left: 30px; text-align: justify;\"><strong>9<\/strong>. Now whenever we receive an email on Gmail, the lead will be created in CRM. Also, we can see the status in <strong><em>\u2018My flows\u2019<\/em><\/strong>\u00a0 list as shown in the screenshot below;<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM8.png\"><img decoding=\"async\" class=\" wp-image-6161 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Create-record-in-Dynamics-CRM8.png\" alt=\"Create record in Dynamics CRM\" width=\"653\" height=\"491\" \/><\/a><\/p>\n<h4 style=\"text-align: justify;\"><strong>Conclusion:<\/strong><\/h4>\n<p style=\"text-align: justify;\">Using Microsoft Flow, users can easily create and automate workflows across multiple applications, in this case, Gmail &amp; Dynamics 365. Once a flow is configured, it can be managed on desktop or mobile device and gives users an unprecedented ability to automate.<\/p>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/www.inogic.com\/product\/productivity-pack\/click-2-clone-microsoft-dynamics-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"alignnone  wp-image-5734\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/05\/Click2Clone-Promo.jpg\" alt=\"Click2Clone - Copy\/clone Microsoft Dynamics CRM\/Dynamics 365 records\" width=\"825\" height=\"102\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Recently we received a requirement to integrate a mailbox not configured in CRM and external to CRM with Dynamics 365. The client had an enquiry mailbox, and they did not want the emails to be created in CRM, and therefore it was not configured. However, they did want that the lead should be automatically\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/08\/microsoft-flow-create-record-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":6162,"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":[16,19,28,36,1985],"tags":[372,373,561,654,1150,1151],"class_list":["post-6156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","category-flow","category-microsoft-flow","category-power-automate","tag-create-record-in-dynamics-365","tag-create-record-in-dynamics-crm","tag-dynamics-365-microsoft-flow","tag-dynamics-crm-microsoft-flow","tag-microsoft-flow","tag-microsoft-flow-and-dynamics-365"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6156","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=6156"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6156\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/6162"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=6156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=6156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=6156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}