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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email output replacing...
Power Automate
Answered

Email output replacing the value

(0) ShareShare
ReportReport
Posted on by

I have a form with many toggle columns from a SharePoint list that output as True/False. So when I create my email I want, if it is True to say Yes and False will equal No. Is there an easy way to accomplish this since I have so many?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Could you please share a screenshot of your flow's configuration?

    Could you please show a bit more about the Form that you mentioned?

    Further, could you please show a bit more about the toggle columns that you mentioned? Is it the Yes/No type column in SharePoint?

     

    I suppose that the toggle column that you mentioned is the Yes/No type column in SharePoint. Yes, you are right. the output (value) of Yes/No type column in SharePoint would be decorated as true/false within Microsoft Flow. If you want to return Yes in your email when the Yes/No type column value decorated as true within Microsoft Flow, I think the if() expression could achieve your needs.

     

    I have created a SharePoint list on my side and the data structure of it as below:9.JPG

    Note: The Is Student column, the Is In Service column and the Is Flow Staff column are all Yes/No type column in my SharePoint list.

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When an item is created" trigger, specify Site Address and List Name.
    • Add a "Send an email" action, specify To field. Within Body field, there are three if() expressions. The first if() expression read as below:
    if(equals(triggerBody()?['Is_x0020_Student'],true),'Yes','No')

    The second if() expression read as below:

    if(equals(triggerBody()?['Is_x0020_In_x0020_Service'],true),'Yes','No')

    The third if() expression read as below:

    if(equals(triggerBody()?['Is_x0020_Flow_x0020_Staff'],true),'Yes','No')

    Note: On your side, you should type the following formula within Body field of "Send an email" action of your flow:

    if(equals(triggerBody()?['ToggleColumnNameofyourSharePointlist'],true),'Yes','No')

    If there is a space within your toggle column name, please replace the space with '_x0020_' within above formula.

     

    Image reference:10.JPG

    The flow works successfully as below:11.JPG

     

    12.JPG

     

    More details about using expressions within flow actions, please check the following article:

    Use expression within flow actions

     

     

    Best regards,

    Kris

     

     

  • Community Power Platform Member Profile Picture
    on at

    Exactly what I was looking for. Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard