cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisBenJohnson
Advocate II
Advocate II

Not Detecting Boolean Values in Formula

When typing the following, PowerApps does not recognise the words 'True' and 'False' as boolean values even though I am referencing a Boolean-type field:

 

{Actioned:true}

 

The 'true' does not turn brown like it should and the entire fucntion is underlined red.

 

But if I insert a random function that uses boolean values in place of the 'true', such as the below:

 

If(Lower(Actioned)="false", false, true)

 

The 'false' and 'true' are recognised and turn brown. Then I can delete the text I don't need and the text stays as boolean type and the formula works. this is intermittent but happens more often than not.

1 REPLY 1
v-micsh-msft
Community Support
Community Support

Hi @ChrisBenJohnson,

 

There is no boolean function available within PowerApps.

So if here you would like to assign Boolean value to a boolean field, then please make sure you have selected the true once the true string has been entered within the formula line:

137.PNG

This should be possible to bypass the type mismatch issue.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,115)