
Hi everybody!
I'm struggling to fetch the label(text) of a choice field in my flow. Check the screenshots below for more details:
I'm trying to get the "Quarter Day" text (Length Label) instead of the number. The field name should be "_cr1e2_length_label" right?
So, I wrote the following Odata expression: outputs('When a row is added, modified or deleted')?['body/_cr1e2_length_label']
When I place this expression in a initialize variable step and try to save, power automate gives me the following error...
"Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The action(s) 'When a row is added, modified or deleted' referenced by 'inputs' in action 'Initialize_variable' are not defined in the template"
Anybody got any ideas what's going on?
You need to write an expression to get the label of single choice field. Expression needs to be entered in the expression window as shown below in the below example:
The expression which you need to use in your flow is:
triggerOutputs()?['body/_cr1e2_length_label']
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks