I am attempting to do the following:
Loop through a list of teams and for each one run an HTTP action to get the list of members and for each of those members run another HTTP action to get their emails.
I want to map the output so that i get the following:
[
{ “team_name”: “Team A”, “emails”: [“email1@email.com”, “email2@email.com”] },
{ “team_name”: “Team B”, “emails”: [“email3@email.com”] }
]
I tried going through the agent architect and its saying to use data_mapper:

but that doesn’t seem to be allowed in a compound action

Is the best way to achieve this a script action using python to manipulate the outputs?
Not sure why the architect is suggesting something that is unavailable for use.