{"id":1123,"date":"2021-06-08T13:07:32","date_gmt":"2021-06-08T13:07:32","guid":{"rendered":"https:\/\/365stack.in\/?p=1123"},"modified":"2021-06-08T13:27:26","modified_gmt":"2021-06-08T13:27:26","slug":"how-to-send-email-based-on-dropdown-selection","status":"publish","type":"post","link":"https:\/\/365stack.in\/index.php\/2021\/06\/08\/how-to-send-email-based-on-dropdown-selection\/","title":{"rendered":"How To Send Email Based On Dropdown Selection"},"content":{"rendered":"\n<p><strong>Method 1:<\/strong><\/p>\n\n\n\n<p>On Change of dropdown get the current value using:<\/p>\n\n\n\n<p>Eg: I&#8217;m getting value from status dropdown so I named it has varStatus.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set(varStatus,Self.Selected.Value);<\/code><\/pre>\n\n\n\n<p>Then On Save button do following action:<\/p>\n\n\n\n<p>Here &#8220;SendEmailBasedOnStatus&#8221; is a Power Automate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SendEmailBasedOnStatus.Run(varStatus,\"\");<\/code><\/pre>\n\n\n\n<p>Check below video for power automate configuration.<\/p>\n\n\n\n<p><strong>Method 2:<\/strong><\/p>\n\n\n\n<p>Get the dropdown value and compare using switch condition on Save click.<\/p>\n\n\n\n<p>If anyone condition matches the switch value, It will set the respective content into variable (i.e. BodyMessage).<\/p>\n\n\n\n<p>Then trigger the Flow.  Check below video for more detail.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Switch(\n    varStatus,\n    \"New\",\n    Set(\n        BodyMessage,\n        \"New Request Submitted\"\n    );\n    SendEmailBasedOnStatus.Run(\"\",BodyMessage);\n    ,\n    \"Cancel\",\n    Set(\n        BodyMessage,\n        \"Your Form Has been Canceled\"\n    );\n    SendEmailBasedOnStatus.Run(\"\",BodyMessage);\n)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"epyt-video-wrapper\"><div  id=\"_ytid_92172\"  width=\"640\" height=\"360\"  data-origwidth=\"640\" data-origheight=\"360\" data-facadesrc=\"https:\/\/www.youtube.com\/embed\/eYSW-sy8Hp0?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;modestbranding=1&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;\" class=\"__youtube_prefs__ epyt-facade epyt-is-override  no-lazyload\" data-epautoplay=\"1\" ><img decoding=\"async\" data-spai-excluded=\"true\" class=\"epyt-facade-poster skip-lazy\" loading=\"lazy\"  alt=\"YouTube player\"  src=\"https:\/\/i0.wp.com\/i.ytimg.com\/vi\/eYSW-sy8Hp0\/maxresdefault.jpg?w=640&#038;ssl=1\"  data-recalc-dims=\"1\" \/><button class=\"epyt-facade-play\" aria-label=\"Play\"><svg data-no-lazy=\"1\" height=\"100%\" version=\"1.1\" viewBox=\"0 0 68 48\" width=\"100%\"><path class=\"ytp-large-play-button-bg\" d=\"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z\" fill=\"#f00\"><\/path><path d=\"M 45,24 27,14 27,34\" fill=\"#fff\"><\/path><\/svg><\/button><\/div><\/div>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Method 1: On Change of dropdown get the current value using: Eg: I&#8217;m getting value from status dropdown so I named it has varStatus. Then On Save button do following action: Here &#8220;SendEmailBasedOnStatus&#8221; is a Power Automate. Check below video for power automate configuration. Method 2: Get the dropdown value and compare using switch condition on Save click. If anyone [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[6,8,5],"tags":[12,9,10,24],"class_list":["post-1123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-canvas-apps","category-power-automate","category-powerapps","tag-canvas-app","tag-powerapps","tag-powerautomate","tag-send-email"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/06\/SendEmail.png?fit=988%2C356&ssl=1?v=1623349369","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2060,"url":"https:\/\/365stack.in\/index.php\/2021\/12\/12\/how-to-stop-infinite-flow-trigger-in-power-automate-using-flag-column\/","url_meta":{"origin":1123,"position":0},"title":"How to stop infinite flow trigger in Power Automate using flag column","author":"Hemanthkumar Rajan","date":"December 12, 2021","format":false,"excerpt":"Infinite flow trigger is a common scenario in workflow softwares like Nintex, K2 and even in Power Automate. If the Canvas app is involved in this process we can handle it easily with the \"Flag\" column. Create a Flag column with default values as \"Yes\" Flag Column Customize form for\u2026","rel":"","context":"In &quot;Canvas Apps&quot;","block_context":{"text":"Canvas Apps","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/powerapps\/canvas-apps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/12\/Screenshot-530.png?fit=1200%2C562&ssl=1%3Fv%3D1639337681&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1678,"url":"https:\/\/365stack.in\/index.php\/2021\/11\/27\/how-to-add-microsoft-forms-responses-to-database\/","url_meta":{"origin":1123,"position":1},"title":"How to add Microsoft Forms responses to database","author":"Premkumar Perumal","date":"November 27, 2021","format":false,"excerpt":"Add Microsoft Forms responses to databases using power automate will help any person\/organization to do advanced data analytics on the responses. We can add responses to list or table using Power Automate in two different ways and create your survey using Microsoft Form as a first step. Method 1: After\u2026","rel":"","context":"In &quot;Power Automate&quot;","block_context":{"text":"Power Automate","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/power-automate\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-26-214110.png?fit=682%2C325&ssl=1%3Fv%3D1637943130&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2278,"url":"https:\/\/365stack.in\/index.php\/2021\/12\/28\/how-to-send-json-data-to-canvas-apps\/","url_meta":{"origin":1123,"position":2},"title":"How to send JSON data to Canvas Apps","author":"Premkumar Perumal","date":"December 28, 2021","format":false,"excerpt":"We're going to explain how to send a JSON response from Power Automate to Canvas app and how to convert the response into Collection format in Canvas app. To illustrate, we have explained a small app as example. As First step, create a new Instant flow that can be triggered\u2026","rel":"","context":"In &quot;Canvas Apps&quot;","block_context":{"text":"Canvas Apps","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/powerapps\/canvas-apps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/12\/Screenshot-2021-12-28-103100.png?fit=836%2C391&ssl=1%3Fv%3D1640667678&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1456,"url":"https:\/\/365stack.in\/index.php\/2021\/09\/17\/powerapps-print-form-to-pdf\/","url_meta":{"origin":1123,"position":3},"title":"How to Print Scrollable Screen to PDF in PowerApps","author":"Hemanthkumar Rajan","date":"September 17, 2021","format":false,"excerpt":"One of the common requirements in any application is to print the data either to save the form as PDF or print the form. PowerApps provides Print() function to print the screen in a printable format, but the limitation is the screen height cannot be greater than 2164px. If a\u2026","rel":"","context":"In &quot;Canvas Apps&quot;","block_context":{"text":"Canvas Apps","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/powerapps\/canvas-apps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2020\/10\/background1.jpg?fit=1200%2C675&ssl=1%3Fv%3D1623349406&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1989,"url":"https:\/\/365stack.in\/index.php\/2022\/01\/03\/how-to-get-started-with-power-platform-solutions-canvas-apps\/","url_meta":{"origin":1123,"position":4},"title":"How to get started with Power Platform Solutions: Canvas Apps","author":"Hemanthkumar Rajan","date":"January 3, 2022","format":false,"excerpt":"Deploying app from one environment to another environment is the most problematic area in SDLC. If development is not taken place in a well-organized setup then the deployment is not going to be that easy. Especially working in the SaaS, we need to follow the product standards to get the\u2026","rel":"","context":"In &quot;Canvas Apps&quot;","block_context":{"text":"Canvas Apps","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/powerapps\/canvas-apps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/12\/Screenshot-402-1.png?fit=1200%2C490&ssl=1%3Fv%3D1639549594&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1527,"url":"https:\/\/365stack.in\/index.php\/2021\/11\/21\/how-to-create-custom-attachment-control-in-powerapps\/","url_meta":{"origin":1123,"position":5},"title":"How to create custom attachment control in PowerApps","author":"Hemanthkumar Rajan","date":"November 21, 2021","format":false,"excerpt":"Attaching a file along with the form is a common requirement, By default PowerApps does not provide any attachment control. But if the SharePoint list is added as a datasource automatically the attachment control will be generated along with the controls. But if multiple attachment control has to be shown\u2026","rel":"","context":"In &quot;Canvas Apps&quot;","block_context":{"text":"Canvas Apps","link":"https:\/\/365stack.in\/index.php\/category\/power-platform\/powerapps\/canvas-apps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/365stack.in\/wp-content\/uploads\/2021\/11\/Screenshot-143.png?fit=1200%2C467&ssl=1%3Fv%3D1637483532&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/comments?post=1123"}],"version-history":[{"count":2,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/posts\/1123\/revisions"}],"predecessor-version":[{"id":1127,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/posts\/1123\/revisions\/1127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/media\/1124"}],"wp:attachment":[{"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/media?parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/categories?post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/365stack.in\/index.php\/wp-json\/wp\/v2\/tags?post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}