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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (64,816)