cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

trying to patch multiple checked fields

 

New to the Powerapps thing and trying to figure out how to patch information to a sharepoint data source without saving.

 

Here's the full story. I've got a browser screen which shows a bunch of numbers, and I want to people to check some of those buttons. However, I don't want them to need to go and individually modify every card. I can change the value of an item from false to true on individual cards (or edit screen) from the browser screen by checking or unchecking using

 

If(Btncheck.Value = true, true

But I'd like to be able to save that information to my data source.

The following code appears on the individual card. "B_id" is a unique identifier. "Condition" is the name of the column I'm trying to modify

 

If(Btncheck.Value = true, Patch(list-name,First(Filter(B_id = 
ThisItem.B_id)),{ Condition: "true" }) 

So a few questions:

1) Why is this not working! 🙂

2) does true/false need to be entered as string with quotations or should I simply leave it as true?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Thanks for the answer. In end, I simply didn't entirely understand how to properly use the function.

 

 

In end I created a very simple button that just did 

Patch(List-name, ThisItem, { row_name: "true" } )

 I've read far more documentation since then.... Sometimes, the simplest things... 

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Anonymous,

 

The issue here should be related with the second if function.

Besides, would it be available for you to share some screenshots here?

 

Basically the patch() fucntion should be used as a behavior formula, which means the user initiates a sequence of actions, or behaviors, that will change the state of the app:

For more details, check:

Understand behavior formulas in PowerApps

 

False or true without quotes would be used as Boolean value, and once quoted, it will be used in String.

 

Post back if you have any further quesitons.

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.
Anonymous
Not applicable

Thanks for the answer. In end, I simply didn't entirely understand how to properly use the function.

 

 

In end I created a very simple button that just did 

Patch(List-name, ThisItem, { row_name: "true" } )

 I've read far more documentation since then.... Sometimes, the simplest things... 

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (25,096)