cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Adding a record to a subproperty array

Hi all

 

I have a in memory Table which is as per below

 

ClearCollect(TaskGroupingData,{GroupName:"Task Group 1",Data:[{Title:"Task 1",Type:""},{Title:"Task 2",Type:""}]})

 

I then user a Gallery inside a Gallery to represent this data with the GroupName shown on the outer group and the Data shown on the inner group. All working fine so far.

 

Now, I want to add more records to the Data Array when the user click a plus button. I can't seem to find a way to adjust that Data Array apart from replacing it. I've tried Patch that didn't work

1 REPLY 1
Responsive Resident
Responsive Resident

Use UpdateIf(TaskGroupingData.Task Group 1,SomeIdentifier,{Title:"ADataCardValueControlOrSomethingElse",Type:"AdataCardValueControlOrSomethingElse"},{Title:"Task 2",Type:""}]}))

 

Try it out.

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 (15,408)