cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
F0x
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
nickduxfield
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,867)