Skip to main content

Extract an item and/or its value from an array of collections

Summary

Use the map() function to extract an item (Email) and/or extract the value of an item (a specific email) from an Array of Collections (Names, Emails, IDs). This is useful when a module returns a JSON and you need to extract all or specific values of an item. This is also a good example of how the map() function works.

Video Tutorial

Below is the video showing how to achieve this using a pre-made template using the JSON modules, a router, and the 'set variable' tool. You can find the template used in this scenario here.

Note

'Create JSON' module should be replaced with the module that returns a JSON as an array of collections.

Feel free to post your queries on our thriving Facebook Community!