Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Patch Count Issue

Hi All,


I have an issue collecting data and patching. I have a gallery (1) which displays all orders made by staff. When selected, gallery (2) displays the items in the order. The user can select 1 or more of these items, which then display in pop-up gallery (7). Within gallery (7), the user can update the status of each item (ordered, on hold, cancelled etc). I have a button which then saves this info.

Within the button onselect, I have the attached collection code, which looks at whether gallery(7) includes any items which have been cancelled. If there is a cancelled item, the onselect patches an update to the order (gallery(1)), which then displays an icon. This is so the user can see if the order includes any cancelled items quickly, without having to select each order individually.

This collection and patch isn't working well; the collection starts to collect prior to gallery (7) updating, so it misses the items being updated and therefore does not display the cancelled icon correctly. Is there a way I can either (a) pause the collection until the gallery (7) has updated, or (b) find another way to do this.





Community Support
Community Support

Re: Patch Count Issue

Hi @cgreen1983 ,


Could you please explain with some sample data about what you are trying to achieve exactly?




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!


Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.


Super Users Coming in August

We are excited for the next Super User season.


Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,446)