How do I map the output values from an Array aggregator into individual variables to use as text in a JSON body output? Specifically, I have a webhook which results in a nested Array (generated_images) with anywhere between 4-16 Collections inside. Inside each Collection there is a field “url” with a unique url value. I am wanting to take all 4-16 urls and use them in an API call using a standard JSON body format of:
“image_urls”: [
“URL1”,
“URL2”,
“URL3”
],
I know how I can map each URL to a unique field, but is there a way I can set to extract the values and list them in this format, so whether there are 4 URLS or 16 URLS the API call still works?
If you need more assistance, please provide the following:
1.
Please share screenshots of the module fields and filters in question? It would really help other community members to see what you’re looking at.
You can upload images here using the Upload icon in the text editor:
2.
Please export the scenario blueprint file to allow others to replicate the issue. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
Please provide the input/output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a bundle.json file, and upload it here into this discussion thread:
Following these steps will allow others to assist you here. Thanks!
Will result a message
“http:msquare.pro/1”,“http:msquare.pro/2”,“http:msquare.pro/3”,“http:msquare.pro/3”,“http:msquare.pro/4”,“http:msquare.pro/5”
you can map this to json directly.