{"id":27327,"date":"2021-03-13T04:16:05","date_gmt":"2021-03-13T04:16:05","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=27327"},"modified":"2021-09-03T04:44:43","modified_gmt":"2021-09-03T04:44:43","slug":"bulk-edit-multiselect-optionset-choices-fields-using-microsoft-power-automate","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/bulk-edit-multiselect-optionset-choices-fields-using-microsoft-power-automate\/","title":{"rendered":"Bulk Edit Multiselect optionset\/choices fields using Microsoft Power Automate"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>I ran into a situation where I need to edit the Multiselect optionset (choices) field in bulk. I thought it could be easily achieved by using the Bulk Edit option but there was a problem. I could not do that because when I select the records and click on Bulk edit, the form does not show up the Multiselect optionset (choices).<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Bulk-Edit-Multiselect-optionsetchoices-fields.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27329\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Bulk-Edit-Multiselect-optionsetchoices-fields.png\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"423\" height=\"369\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Bulk-Edit-Multiselect-optionsetchoices-fields.png 423w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Bulk-Edit-Multiselect-optionsetchoices-fields-300x262.png 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a><\/p>\n<p>How we can then achieve this?<\/p>\n<p>If we search for this over the internet, we will find that we need to create an on-demand Workflow with custom assembly to update the Multiselect optionset field. Custom workflow assembly because again Multiselect optionset fields does not show up in Update record properties form of the Workflow step.<br \/>\nFinally, I am able to achieve this using Power Automate Flow. Let us see how you can bulk edit Multiselect optionset fields using Power Automate Flow.<\/p>\n<p>\u2022 Go to <a href=\"https:\/\/make.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/make.powerapps.com<\/a> and create a new \u201cInstant Cloud Flow\u201d<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Bulk-Edit-Multiselect-optionsetchoices-fields.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27330\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Bulk-Edit-Multiselect-optionsetchoices-fields.png\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"423\" height=\"369\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Bulk-Edit-Multiselect-optionsetchoices-fields.png 423w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Bulk-Edit-Multiselect-optionsetchoices-fields-300x262.png 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a><\/p>\n<p>\u2022 As we have to run the Flow on the multiple selected records, select the \u201cWhen a row is selected\u201d from the list of triggers and click on Create.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27331\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"720\" height=\"456\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 720w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-Bulk-Edit-Multiselect-optionsetchoices-fields-300x190.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-Bulk-Edit-Multiselect-optionsetchoices-fields-660x418.jpeg 660w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>\u2022 This will create a flow that we can run on selected records from Dynamics 365 CRM or CDS\/Dataverse environment.<\/p>\n<p>\u2022 Select the environment and select the entity where you want to bulk edit the Multiselect optionset field.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/4-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27332\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/4-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"493\" height=\"166\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/4-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 493w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/4-Bulk-Edit-Multiselect-optionsetchoices-fields-300x101.jpeg 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><\/p>\n<p>\u2022 Add a new step and select the \u201cUpdate a row\u201d action. Using this we will update the current selected record\/row.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/5-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27333\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/5-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"485\" height=\"456\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/5-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 485w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/5-Bulk-Edit-Multiselect-optionsetchoices-fields-300x282.jpeg 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\n<p>\u2022 After this, select the entity and pass the unique identifier of the record.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27334\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"771\" height=\"387\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 771w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields-300x151.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields-768x385.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/6-Bulk-Edit-Multiselect-optionsetchoices-fields-660x331.jpeg 660w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/><\/a><\/p>\n<p>\u2022 Now, look for Multiselect optionset field from the list of fields. You will see that you can only select one option at a time. Though it is a Multiselect option, we can only select one option.<\/p>\n<p>In the below screenshot, Operation is the Multiselect optionset field with options as \u201cCreate, Update and Read\u201d. We are able to select an only single option.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/7-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27337\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/7-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"515\" height=\"354\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/7-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 515w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/7-Bulk-Edit-Multiselect-optionsetchoices-fields-300x206.jpeg 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p>\u2022 To set multiple options, we need to write the expression. Click on \u201cEnter custom value\u201d, this will open up the expression box. Click on \u201cExpression\u201d and enter the following expression, string(0, 1)<\/p>\n<p>Here 0 and 1 are the values of options of the Multiselect optionset field. In my case, 0 and 1 are the option values of Create and Update option respectively. Each option value is separated by a comma \u2018,\u2019<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/8-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27336\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/8-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"319\" height=\"656\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/8-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 319w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/8-Bulk-Edit-Multiselect-optionsetchoices-fields-146x300.jpeg 146w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/><\/a><\/p>\n<p>Syntax of the expression is, string (&lt;value1&gt;, &lt;value2&gt;, &lt;value3&gt;)<\/p>\n<p>\u2022 Save the flow and run it by selecting the multiple records,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-27335\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg\" alt=\"Bulk Edit Multiselectoptionset\/choices fieldsusing Microsoft Power Automate\" width=\"1125\" height=\"320\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields.jpeg 1125w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields-300x85.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields-768x218.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields-1024x291.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/9-Bulk-Edit-Multiselect-optionsetchoices-fields-660x188.jpeg 660w\" sizes=\"(max-width: 1125px) 100vw, 1125px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>This way we can easily edit Multiselect optionset fields by using Power Automate Flow.<br \/>\nHope this helps! Thank you!<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/kanban-board-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27338 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/kb.jpg\" alt=\"kanban board\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/kb.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/kb-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/kb-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/kb-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction I ran into a situation where I need to edit the Multiselect optionset (choices) field in bulk. I thought it could be easily achieved by using the Bulk Edit option but there was a problem. I could not do that because when I select the records and click on Bulk edit, the form does\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/bulk-edit-multiselect-optionset-choices-fields-using-microsoft-power-automate\/\">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":[1985],"tags":[2210],"class_list":["post-27327","post","type-post","status-publish","format-standard","hentry","category-power-automate","tag-microsoft-power-automate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27327","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=27327"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=27327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=27327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=27327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}