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!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,938)