cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
devdotme
New Member

Expected type 'Boolean'. Found type 'Record'

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.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

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.

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

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.

 

Thank you so much.

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,201)