I’ve been having a heck of a time trying to combine data from across operations into one variable.
Goal: Automatically crosspost from Instagram to my blog
- Watch my Instagram account
- Download the images and videos in each post when I upload something new
- Upload those media files via API requests to my blog’s CDN which returns an image URL for each one (each image has to be uploaded with its own API request)
- Format the image URLs returned from each of those API requests, format them as inline Markdown image text, and then combine them all onto separate lines and save everything as a variable
- Make a new blog post with a final API post request that includes the original caption, and the variables that include all the Markdown images (and HTML videos, which are done with a similar method via the middle route)
I’m getting stumped in the top route (step 4 above) when there are multiple images in a post. I get them all uploaded to the CDN correctly, but the URLs returned are done in their own operation and I can’t get them to combine with the Text Aggregator. So I end up with only one image in the variable at the end instead of all of them.
Text not getting aggregated; they’re all in their own operation and bundle:
My Text Aggregator settings (each image URL should get put into Markdown format and onto a new line):
How it should all come together in the end:
I’ve tried playing with the Iterator, putting in Array Aggregators, but nothing seems to get those operations down to one. Does anyone know of a solution?