{"id":36732,"date":"2022-05-06T22:18:17","date_gmt":"2022-05-06T16:48:17","guid":{"rendered":"https:\/\/techmasala.addastudents.com\/dev\/?p=36732"},"modified":"2022-05-06T22:18:19","modified_gmt":"2022-05-06T16:48:19","slug":"when-a-new-record-is-created-in-dynamics-365-crm-send-an-sms","status":"publish","type":"post","link":"https:\/\/techmasala.addastudents.com\/dev\/when-a-new-record-is-created-in-dynamics-365-crm-send-an-sms\/","title":{"rendered":"When a new record is created in Dynamics 365 CRM, send an SMS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Whenever you&#8217;ll create a new record in <a href=\"https:\/\/techmasala.addastudents.com\/dev\/category\/learn-technology-free\/learn-microsoft-dynamics-crm\/\" target=\"_blank\" rel=\"noreferrer noopener\">d365 CRM<\/a>, a power automate flow will be triggered to send an SMS. When the flow is successfully executed, a text SMS will be sent to the user&#8217;s phone (whatever number you put in the field for the mobile number)&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CRM:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1024x475.png\" alt=\"\" class=\"wp-image-36733\" width=\"840\" height=\"389\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1024x475.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-300x139.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-768x357.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1536x713.png 1536w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1170x543.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image.png 1540w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><figcaption>CRM<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the below screen, you can see a few steps we took in order to accomplish the same.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Power Automate:<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-1024x460.png\" alt=\"\" class=\"wp-image-36735\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-1024x460.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-300x135.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-768x345.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-1536x689.png 1536w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1-1170x525.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-1.png 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Power Automate<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This flow would be triggered whenever a new record is created in MS CRM. First, CDS would be executed.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2-1024x349.png\" alt=\"\" class=\"wp-image-36736\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2-1024x349.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2-300x102.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2-768x262.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2-1170x399.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-2.png 1278w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Following the first step, our second step would be a variable initialization. As we need to store the mobile number to send SMS.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"568\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3-1024x568.png\" alt=\"\" class=\"wp-image-36737\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3-1024x568.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3-300x166.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3-768x426.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3-1170x649.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-3.png 1429w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Following the second step, our third step would be an HTTP request. Sending SMS requires us to utilize a third-party API (HTTP request).&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ex (third party API provider)- <a href=\"https:\/\/www.enablex.io\/cpaas\/sms-api\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.enablex.io\/cpaas\/sms-api<\/a>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You must enter values in the following fields to trigger the HTTP request.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Method: <strong>POST<\/strong>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. URI: <strong>HTTP request URL<\/strong>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Body: <strong>JSON value as specified by the API provider<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4-1024x553.png\" alt=\"\" class=\"wp-image-36738\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4-1024x553.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4-300x162.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4-768x415.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4-1170x632.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-4.png 1474w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Authentication<\/strong>:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The API authentication type must be chosen based on the provider type.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"490\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-1024x490.png\" alt=\"\" class=\"wp-image-36740\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-1024x490.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-300x143.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-768x367.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-1536x735.png 1536w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6-1170x560.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-6.png 1545w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After we send the SMS, we set the API response in the description field in order to check what response we are receiving.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5-1024x526.png\" alt=\"\" class=\"wp-image-36739\" srcset=\"https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5-1024x526.png 1024w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5-300x154.png 300w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5-768x395.png 768w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5-1170x601.png 1170w, https:\/\/techmasala.addastudents.com\/dev\/wp-content\/uploads\/2022\/05\/image-5.png 1489w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To receive the latest updates related to Dynamics 365 CRM and Power Platform, subscribe to our channel \ud83d\ude0a\ud83e\uddd1\u200d\ud83d\udcbb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever you&#8217;ll create a new record in d365 CRM, a power automate flow will be triggered to send an SMS. When the flow is successfully executed, a text SMS will be sent to the user&#8217;s phone (whatever number you put in the field for the mobile number)&nbsp; CRM:&nbsp; In the below screen, you can see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":36735,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,70,759,72],"tags":[798,804,797,785,790,778,800,779,788,784,805,793,789,794,791,796,781,795,803,782,792,806,786,783,801,780,787,799,802],"class_list":["post-36732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn-microsoft-dynamics-crm","category-learn-technology-free","category-learn-microsoft-power-automate","category-tech","tag-admin","tag-admindashboard","tag-adminpanel","tag-b","tag-bootstrap","tag-business","tag-cloud","tag-crm","tag-crmsoftware","tag-css","tag-customerrelationshipmanagement","tag-dashboard","tag-digitalmarketing","tag-dynamics","tag-ecommerce","tag-envato","tag-erp","tag-erpsoftware","tag-management","tag-marketing","tag-mobileapp","tag-o","tag-sales","tag-salesforce","tag-seo","tag-software-2","tag-technology","tag-webapp","tag-webkit"],"_links":{"self":[{"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/posts\/36732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/comments?post=36732"}],"version-history":[{"count":4,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/posts\/36732\/revisions"}],"predecessor-version":[{"id":36743,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/posts\/36732\/revisions\/36743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/media\/36735"}],"wp:attachment":[{"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/media?parent=36732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/categories?post=36732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmasala.addastudents.com\/dev\/wp-json\/wp\/v2\/tags?post=36732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}