Create an array from Data Store and send using API

Hello
Because custom taxonomies (wordpress) are not supported I’m trying to figure out how to do.
I’ve created a get api request to get full listing of available taxonomies. Then I search by name the taxonomy and I retrieve the id of each.
The problem is that I can’t accumulate when there are many taxonomies to be added, just the last one gets added.

The json I post is like:
{
“genres”: [411,55,55…]
}

The flow is like

Data store output with two tax

Iterator output

Variable

Aggregator

Json

The API POST request is OK but there are two request and my purpose is to have single request with the correct combined array.

Really, I tried many options with no luck, any help?

Also I don’t understand the array aggregator UI and why is giving two outputs instead of one

Welcome to the Make community!

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant 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. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

Join the Make Fans Discord server to chat with other makers!

1 Like

I think that as I’ve shared is enough in order to see the important things. Anyway here is an export of the blueprint
blueprint.json (54.4 KB)

iterator output

[
    {
        "value": "Drum & Bass",
        "__IMTINDEX__": 1,
        "__IMTLENGTH__": 3
    },
    {
        "value": "Dancefloor",
        "__IMTINDEX__": 2,
        "__IMTLENGTH__": 3
    },
    {
        "value": "Neuro",
        "__IMTINDEX__": 3,
        "__IMTLENGTH__": 3
    }
]

Data store output (1 sample of 3)


[
    {
        "key": "3172c1433175",
        "data": {
            "id": 4122,
            "name": "Drum & Bass",
            "slug": "drum-and-bass"
        },
        "__IMTLENGTH__": 1,
        "__IMTINDEX__": 1
    }
]

**Second iterator output (1 sample of 3)**
[
    {
        "value": 4122,
        "__IMTINDEX__": 1,
        "__IMTLENGTH__": 1
    }
]

Variable ouput (1 sample of 3)


[
    {
        "itemmm": 4122
    }
]

Array agregator output (1 sample of 3)

[
    {
        "array": [
            {
                "itemmm": 4122
            }
        ],
        "__IMTAGGLENGTH__": 1
    }
]

Json output (1 sample of 3)


[
    {
        "json": "{\"genres\":[4122]}"
    }
]

Due to privacy, api request is not shared (is not important)

Thanx