Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • TomasKCSL Profile Picture
    8 on at
    Re: Data type Yes/No in SharePoint - change the values to Pass or Fail instead True / False in Email

    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

  • abm abm Profile Picture
    32,464 Most Valuable Professional on at
    Re: Data type Yes/No in SharePoint - change the values to Pass or Fail instead True / False in Email

    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
    Re: Data type Yes/No in SharePoint - change the values to Pass or Fail instead True / False in Email

    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,464 Most Valuable Professional on at
    Re: Data type Yes/No in SharePoint - change the values to Pass or Fail instead True / False in Email

    Hi @TomasKCSL 

     

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

     

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

     

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow