cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stavrinio85
Frequent Visitor

Error received when trying to patch datatable from checkbox

Trying to update datatable value when checkbox is checked on Gallery.

Patch(Table7_1,Search(Table7_1,ThisItem.Branch,Branch),{Column9:"1"})

I need to match the id of the datatable and the gallery checkbox to update datatable's column9 from 0 to 1.

I am getting an error:

The function search has invalid arguments

I also tried this function but still getting error when trying to update the datatable.

If(!IsBlank(LookUp(Table7_1,Branch = ThisItem.Branch)),Patch(Table7_1,LookUp(Table7_1,Branch = ThisItem.Branch,Column9),{Column9:1}),"")

 

and this 

 

ForAll(CheckedItems,Patch(ChecklistItemsSource,LookUp(ChecklistItemsSource, Id = CheckedItems[@Id]),{Status:"Done"}))

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
stavrinio85
Frequent Visitor

Sorry for the posting i think i resolved it by doing the below:

Patch(Table7_1,First(Search(Table7_1,Text(ThisItem.Branch),"Branch")),{Column9: 1})

 

If anyone is interested.

View solution in original post

1 REPLY 1
stavrinio85
Frequent Visitor

Sorry for the posting i think i resolved it by doing the below:

Patch(Table7_1,First(Search(Table7_1,Text(ThisItem.Branch),"Branch")),{Column9: 1})

 

If anyone is interested.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (16,221)