cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Kingpin
Kudo Kingpin

[Patch Nested Galleries]

I have to save nested Galleries Values in SharePoint, I'm Very Confuse to Patch the nested Galleries Values My schema is look like this.

Harry_G_0-1602582145017.png

 

 

Collect(PriceBook,
{Type:"1",
Product:"",
btnSave:true,PriceBookServices:{Type:"1",'Billing Code':"1",'Billing Code Name':"",Price:"",Product:"",'Service Type':"1",Service:"1",Unit:"1",MonthRange:"",Description:"",Discount:0,SaveButton:true,BusinessJustificaton:""}});

 

 

This is my collection. The scenario is I have to select Product and sub product than Gallery2 rows is auto populate with filter values. I have facing issue to patch them all. Any help would be appreciated.

Thanks,

Harry_G

1 ACCEPTED SOLUTION

Accepted Solutions
Resident Rockstar
Resident Rockstar

Hi @Harry_G ,

You can Patch all the records using the ForAll Function.

Like below - 

ForAll(CollectionName,if Need To create new Record then use default(sourceName),SourceName,{Values here});

Thanks,
Vijay

View solution in original post

2 REPLIES 2
Resident Rockstar
Resident Rockstar

Hi @Harry_G ,

You can Patch all the records using the ForAll Function.

Like below - 

ForAll(CollectionName,if Need To create new Record then use default(sourceName),SourceName,{Values here});

Thanks,
Vijay

View solution in original post

@VijayTailor 

 

Thanks for giving me the clue. In my scenario on save of parent gallery row this formula works.

 

ForAll(ParentCol,Patch(ChildCol,Defaults(ChildCol),{Item:Value,........}));

Btw thanks again.

 

Thanks,

Harry_G 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,487)