cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kroontje
Frequent Visitor

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 II
Super User II

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 II
Super User II

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

Kroontje
Frequent Visitor

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

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (63,854)