{"id":1607,"date":"2021-04-07T19:06:00","date_gmt":"2021-04-07T19:06:00","guid":{"rendered":"https:\/\/www.toponecrm.com\/blog\/?p=1607"},"modified":"2021-04-08T11:03:46","modified_gmt":"2021-04-08T11:03:46","slug":"how-to-work-with-pptionset-lables-in-power-automate-power-flow","status":"publish","type":"post","link":"https:\/\/toponecrm.com\/blog\/uncategorized\/how-to-work-with-pptionset-lables-in-power-automate-power-flow\/","title":{"rendered":"How to work with optionset lables in Power Automate? &#8211; Power Flow"},"content":{"rendered":"\n<p>Greate post form Thomas (CRM Addicted)<\/p>\n\n\n\n<p><a href=\"http:\/\/crmaddicted.blogspot.com\/2020\/01\/working-with-optionset-lables-in-power.html\">http:\/\/crmaddicted.blogspot.com\/2020\/01\/working-with-optionset-lables-in-power.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Posts on Power Platform Forum:<\/p>\n\n\n\n<p><a href=\"https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486\">https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/powerusers.microsoft.com\/t5\/Building-Flows\/How-to-retrieve-an-option-set-label\/td-p\/547354\">https:\/\/powerusers.microsoft.com\/t5\/Building-Flows\/How-to-retrieve-an-option-set-label\/td-p\/547354<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486\">https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486<\/a><\/p>\n\n\n\n<p>Lin post:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/linnzawwin.blogspot.com\/2020\/07\/get-lookup-display-name-and-option-set.html\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/powerusers.microsoft.com\/t5\/Building-Flows\/How-to-retrieve-an-option-set-label\/td-p\/547354\n<\/div><\/figure>\n\n\n\n<p>The full expression is Triggeroutputs()?[&#8216;body\/_leadqualitycode_label&#8217;].<\/p>\n\n\n\n<p>&nbsp; The main issue I have is that this will only work with the CDS connector and not the CDS (current environment) connector as the label value is not returned in the JSON for the CDS (current environment) connector.&nbsp; I hope this is fixed in the future as the current environment connector provides more Actions and is more efficient for processing lists of record.<\/p>\n\n\n\n<p>If you wanted to do this from a different record than the record that triggered the flow then use the Get Record action and then the following expression Outputs(&#8216;Get_record&#8217;)?[&#8216;body\/_leadqualitycode_label&#8217;] where &#8216;Get_record&#8217; is the name of the action.<\/p>\n\n\n\n<p>Hope this helps someone.<\/p>\n\n\n\n<p>Other links<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/td-p\/162486\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/powerusers.microsoft.com\/t5\/Building-Flows\/Option-Set-in-MS-Automate-flow\/td-p\/499217\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.powerautomatetraining.co.uk\/post\/how-to-retrieve-cds-option-set-label-name\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-link is-provider-d-365-demystified\"><div class=\"wp-block-embed__wrapper\">\n<a href=\"https:\/\/d365demystified.com\/2020\/11\/30\/using-outputs-function-and-json-parse-to-read-data-from-missing-dynamic-value-in-a-flow-power-automate\/\">Using outputs() function and JSON Parse to read data from missing dynamic value in a Flow | Power&nbsp;Automate<\/a>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Greate post form Thomas (CRM Addicted) http:\/\/crmaddicted.blogspot.com\/2020\/01\/working-with-optionset-lables-in-power.html Posts on Power Platform Forum: https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486 https:\/\/powerusers.microsoft.com\/t5\/Building-Flows\/How-to-retrieve-an-option-set-label\/td-p\/547354 https:\/\/powerusers.microsoft.com\/t5\/Microsoft-Dataverse\/I-want-using-Option-Set-field-choose-label-value\/m-p\/162486 Lin post: The full expression is Triggeroutputs()?[&#8216;body\/_leadqualitycode_label&#8217;]. &nbsp; The main issue I have is that this will only work with the CDS connector and not the CDS (current environment) connector as the label value is not returned in the JSON &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/toponecrm.com\/blog\/uncategorized\/how-to-work-with-pptionset-lables-in-power-automate-power-flow\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to work with optionset lables in Power Automate? &#8211; Power Flow&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":[],"_tribe_ticket_has_attendee_info_fields":false},"categories":[1],"tags":[],"ticketed":false,"_links":{"self":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1607"}],"collection":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/comments?post=1607"}],"version-history":[{"count":8,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1607\/revisions"}],"predecessor-version":[{"id":1624,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1607\/revisions\/1624"}],"wp:attachment":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/media?parent=1607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/categories?post=1607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/tags?post=1607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}