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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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

Anonymous
Not applicable

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,601)