Updating an XDM Custom Field Group Array with a Data Element in Update Variable Action (Variable Editor)
Hi,
I need some help on how to update a custom field group I created, which expects an array of strings. I don't see any examples, so I hope it is straight forward. The path is "_drh.menuArr" and I want to be able to populate it with anywhere from 1 - 6 values via a data element. Is populating it as easy as having the data element just return the entire array to the field group or do I have to loop through the values and return each value individually? If I have to return each value individually, how does this work? I'm not sure if I have to specify the index for each value or will the schema auto index the returned values? For example, Let's say my data element wants to return these values:
// Example of data element named "arrayOfMenuItems" which wants to populate "_drh.menuArr"
var dataElementMenuItems = ["up", "down", "left"];
How would I populate the "_drh.menuArr" field group via the data element?
Thanks!