cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

extracting the 'text' from a dropdown

HI I have a flow which send and email after a trigger.

The email contains a value 'SROUrgency' This value currently displays as 717710001. I need it to display the text associated with that value. In this case URGENT.

 

I have tried every type of triggerbody()?['SROUrgency.SelectedText.Value'] I can think of and it always returns blank.

 

Can someone please tell me the correct syntax to extract the text please.

 

Paul

Community1.PNGCommunity1a.PNGCommunity2.PNGCommunity3.PNG

3 REPLIES 3
Super User III
Super User III

Hello @SwingeyP 

 

Could you share the trigger outputs from one of your flow runs.





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips, tricks, and guides
FlowAltDelete




hello @Jcook ,

 

SwingeyP_0-1605080508621.png

I have tried this in the email V2 section and where the VAR is set. It always returns nothing triggerbody()?['SROUrgency.SelectedText.Value']

So I decided to try and force the value dependant on IF

if(equals(triggerBody()?['SROUrgency'],'717710001'),'Medium',if(equals(triggerBody()?['SROUrgency'],'717710002'),'HIGH','NULL'))  - other values to be added. 

The catch all fires here and returns NULL even though the output shot above clearly shows the value of SROUrgency.

 

So my thought is that it's something to do with a 'dynamic' vs 'static' variable?? I am a newbie to flows and it's weird expression editor. 

Hello @SwingeyP 

 

Could you please send me the outputs from your trigger in a Flow run.

To do this:

Inside a Flow run, Select the Trigger,

There should be a Outputs box, (It may say Click to download - that is fine click there)

and copy and paste the results here.





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips, tricks, and guides
FlowAltDelete




Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (90,639)