web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Choice column values i...
Power Automate
Unanswered

Choice column values into Yes, No

(0) ShareShare
ReportReport
Posted on by 725

Hi everyone

I have spent a painful amount of time on this.

My flow is grab a single record from a Sharepoint list then turn it into a pdf and then email it. All of that works except I need the choice column values to be converted to Yes/ No values. In other words, if for example the 'Wrapped Acceptably' Choice has been selected in Sharepoint then that would be a 'Yes' in my html, if all four choices values have been selected in Sharepoint then I would have four x 'Yes', if not then 'No'.

I have the choice columns as an array, and I have tried amongst many other things the following.

if(contains(body('Select')[0],'Wrapped Acceptably'),'Yes','No')

But this does not like null values

Any help would be appreciated.

 

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Corissandageri ,

    Can you post a screenshot, please?

    I think your body('select')[0] is the culprit.

    Why don't you add a condition to first check the length of body('select') and then apply your expression?

     

  • R Bakker Profile Picture
    725 on at

    Hi Sudeep

    I think my approach is wrong, because body('select')[0] can be 'Wrapped Acceptably' or 'Free of Vermin' depending which order they were selected in Sharepoint. attached is the finished look I am going for.PowerautomatePS.pngPowerautomatePS2.pngPowerautomatePS3.png 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard