I feel like this is the most basic use of an array aggregator yet I cannot figure out how to set it up.
My process is this:
- Search for files in a Google Drive folder
- Download file from Google Drive folder (1 operation for each file found in 1.)
- Upload it to Wordpress (returns Media ID) (1 operation for each file found in 1.)
- Create a post in Wordpress with an Image gallery of the media files created in 3. This is done by providing a key/value pair for the ACF image gallery field, where the key is the name of the field and the value is an array of the Media IDs that should go into the gallery, like so: [123,456,789]. I know this is correct, because when I test it with flat values, it works.
But I cannot figure out how to go from 3 separate operations, each with their own bundle that has as one of the items the Media ID, to a single array that only contains the values of those IDs.
I’ve tried many variations, but I can’t figure it out. See below for the most basic variant of my solution so far:
The Array aggregator’s Output:
What goes into the ACF field:
What should go into the ACF field: [11946,11948,11950]
Any idea how to do this right?