IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

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

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

    Posted Wed June 08, 2022 05:36 AM

    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


    #webMethods-io-Integration
    #webMethods
    #webMethods-cloud
    #Integration-Server-and-ESB


  • 2.  RE: How to loop over an arrayList inside a $rootArray to extract data

    Posted Wed June 08, 2022 06:12 AM

    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.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-io-Integration
    #webMethods-cloud


  • 3.  RE: How to loop over an arrayList inside a $rootArray to extract data

    Posted Wed June 08, 2022 08:11 AM

    That’s it John.

    Worked very well for me.

    Thank you.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-cloud
    #webMethods-io-Integration