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 III
Super User III

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

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
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

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (54,511)