cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JMAFO
Helper V
Helper V

Patch specific SharePoint List items with Gallery Items

Hello everyone,

 

I have a SharePoint list that serves as the data source for my gallery. I need to be able to update the SharePoint list using the gallery. 

 

I've tried using a ForAll( Patch( ) ) statement but nothing is being updated.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@JMAFO 

You will need to run your ForAll against the Gallery Items.

 

ForAll(yourGallery.AllItems, Patch(....

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@JMAFO 

You will need to run your ForAll against the Gallery Items.

 

ForAll(yourGallery.AllItems, Patch(....

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
v-bofeng-msft
Community Support
Community Support

Hi @JMAFO :

As mentioned by @RandyHayes ,you can meet your needs through ForAll( Patch( ) ) .But if you need to determine where the problem is with your formula, it's better to show the complete code.

One thing to note is that the data structure of Gallery.AllItems and the data structure of this Gallery's data source may be different (it depends on the controls in this gallery).I suggest you refer to the following formula:

 

ForAll(Gallery.AllItems,Patch(YourDataSource,Defaults(YourDataSource),{Column1:GalleryColumn1,Column2:GalleryColumn2}))

 

Best Regards,

Bof

 

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,056)