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 Apps / Expected type 'Boolean...
Power Apps
Answered

Expected type 'Boolean'. Found type 'Record'

(0) ShareShare
ReportReport
Posted on by 5

So my SP List have questions that required just Yes or No. And I set the Column Type to Yes/No.

 

In my test PowerApps app I am using Radio input of 'Yes' or 'No' as opposed to '1' or '2'.

 

I'm using Patch() function to update the SP List.

 

Patch('LBCC Checkin Online',Defaults('LBCC Checkin Online'),{Title:User().FullName,Question1:Radio1.Selected})

 

Getting error: The type of this argument 'Question1' does not match the expected type 'Boolean'. Found type 'Record'.

 

I am not sure if I want to do Single Line Text in SP List which I can get to work. TBH.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @devdotme ,

    I suspect you have a Boolean field (Yes/No) behind the Radio button option and I see you have hard-coded ["Yes","No"] as the Items, so try this

    Patch(
     'LBCC Checkin Online',
     Defaults('LBCC Checkin Online'),
     {
     Title:User().FullName,
     Question1:
     If(
     Radio1.Selected.Value="Yes",
     true,
     false
     )
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • devdotme Profile Picture
    5 on at

    Thank you so much.

  • MN003 Profile Picture
    441 on at

    Thank you @WarrenBelz! This worked great.

     

    I didn't think I'd find an answer close to what I needed for my Patch function in my form.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard