cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

MS Flow wont turn my values in 'Text'

Hi,

 

I'm trying to populate a Word document when a record is updated, one of the inputs is an option set which is determined is CDS. So the output will be a value:

 

Kroontje_0-1595249308323.png

 

When populating a Word document, the value will be printed on the document. I need to show the name instead of the value.

The Parse JSON isnt working in this one, because not al the field are always filled in.

 

I tried to create an if statement in the Populate function :

if(triggerOutputs()?['body/dsl_kleursteigerlables'] equals '860910000''Groen''Rood')
(Need to another for the other value)
 
But Flows keeps saying the function is invalid. Tried the int, string etc. etc.
 
Anybody who knows how to solve this?
1 ACCEPTED SOLUTION

Accepted Solutions
Rahber
Super User
Super User

Assuming your logic is correct try this expression.

if(equals(triggerOutputs()?['body/dsl_kleursteigerlables'], '860910000'), 'Groen', 'Rood')

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,

Rahber

View solution in original post

2 REPLIES 2
Rahber
Super User
Super User

Assuming your logic is correct try this expression.

if(equals(triggerOutputs()?['body/dsl_kleursteigerlables'], '860910000'), 'Groen', 'Rood')

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,

Rahber

View solution in original post

Anonymous
Not applicable

Thanks! Unfortunately the use of functions needs a bit of attention in MS Flow. This was the solution!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,493)