In one of my flows, I receive a JSON array as part of an HTTP GET request to a 3rd party API.
I now want to map a specific property within the array of elements to be added to an (HTML) email.
To utilize the data effectively in subsequent steps, you might consider this approach:
1. Start with the HTTP action and choose Return Response. 2. Input your JSON data directly into the response section. 3. Afterwards, reference the parsed output in your Gmail step (or whichever service you’re integrating).
This way, the extracted emails can be easily mapped into the desired HTML format for your email. Hope this helps!
Just noticed, the JSON you provided has a slight issue with a trailing comma, making it invalid. Here’s a quick way to automatically correct it in ActivePieces:
1. Use a Text Formatter step with the “Replace” function:
Find: },]}
Replace with: }]}
This should clean up any trailing commas.
2. Proceed to use the cleaned JSON in the steps I mentioned earlier.