Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Container and Gallery patch issue



When I am using patch without container for gallery items it is working fine.

But if I place the field inside a container in gallery then the patch function is not working properly.


To regenerate issue  : Create a gallery with a container and add fields inside the container and apply a patch to SP.

Observed Result : All the items in gallery will be updated with same values.


The patch is working but for all the gallery items it is updating same values even the values are different.


Please let me know if anyone faced the similar issue.




Super User
Super User

@Praveenp Could you share a screen shot and the Patch formula.

Frequent Visitor


Sorry I cannot share the screenshot as the page holds some sensitive data and also the page is heavy with multiple other sections.


formula is pretty straight forward where I am trying to push all the records to SP list, it is pushing the data but it is taking the first iteration values only.

Super User
Super User

Hi @Praveenp 
I don't think is possible container inside gallery but you can patch individually controls without gallery for example 

             Company: Trim(txtCompanyName.Text),
            'First Name': Trim(txtFirstNames.Text),
            'Last Name': Trim(txtLastNames.Text)


Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,461)