cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,758)