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

Email output replacing the value

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?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Exactly what I was looking for. Thanks!

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,382)