How to loop over an arrayList inside a $rootArray to extract data

What product/components do you use and which version/fix level?

10.11

Are you using a free trial or a product with a customer license?

Customer License

What are trying to achieve? Please describe in detail.

Good Morning.

How can I loop over an ArrayList inside an $rootArray?

This is my structure:

image

I need to get the values from variables:
Email
sub

And Inside UserAssets[0]
I need:
@Type
id

Someone can help me?
Many thanks

Do you get any error messages? Please provide a full error message screenshot and log file.

Have you installed latest fixes for the products

First create a loop over $rootArray and then embed a second loop inside this loop and loop over $rootArray/userAssets.
Any maps within the second loop will be able to reference both email, sub and the individual elements of userAssets.

regards,
John.

3 Likes

That’s it John.

Worked very well for me.

Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.