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 / Data type Yes/No in Sh...
Power Automate
Unanswered

Data type Yes/No in SharePoint - change the values to Pass or Fail instead True / False in Email

(1) ShareShare
ReportReport
Posted on by 8

Hi,

 

No matter how much I try any options it still not working for me, so I decided to ask you for help.

 

I create a simple power app using SharePoint list with column Type Yes/No, and using power Automate to send emails with the information that was sent by the power app.

 

So, my problem is when I use Automate flow 'Send an email' information back as True / False but I wanted to change that information back with Pass / Fail.

 

Already try use:

if(equals(triggerBody()?['InternalColumnName'],True),'Pass','Fail')

But then information always back with Fail only

 

App:

TomasKCSL_1-1666945957063.png

 

Flow:

TomasKCSL_0-1666945846842.png

 

Back to email Fail but it had to back Pass

TomasKCSL_2-1666946118747.png

 

Can someone help me, I'm completely new to this, but I'm try learning. Thanks

 

Regards

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @TomasKCSL 

     

    This could be the data type issue from the trigger. Try the following:

     

    if(equals(bool(triggerBody()?['InternalColumnName']),true),'Pass','Fail')

     

    Thanks

  • TomasKCSL Profile Picture
    8 on at

    First of all, I would like to thank you for the quick reply.

     

    Unfortunately, now I get error after using

    if(equals(bool(triggerBody()?['InternalColumnName']),true),'Pass','Fail')

     

    Error Detail:

    Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '0' and column '0': 'The template language function 'bool' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'. 

     

    TomasKCSL_0-1666967483233.png

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @TomasKCSL 

     

    Check the run history and find out the value of triggerBody()?['InternalColumnName']

     

    if its string then try

     

    if(equals(triggerBody()?['InternalColumnName'],'true'),'Pass','Fail')

     

    or

     

    if(equals(triggerBody()?['InternalColumnName'],'True'),'Pass','Fail')

     

    Thanks

     

  • TomasKCSL Profile Picture
    8 on at

    Hi,

     

    No matter what I did, it always backs Fail

     

    TomasKCSL_0-1667297285959.png

    TomasKCSL_1-1667297362020.png

    Already try

    if(equals(triggerBody()?['OData__x0051_1'],'true'),'Pass','Fail')

    if(equals(triggerBody()?['Q1'],'true'),'Pass','Fail')

     

    TomasKCSL_2-1667297534700.png

     

     

    but it always back as Fail even if in app I chose Pass

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard