Workflow Loop Iterate Error

Hello all!

I have an app and I want to trigger a workflow query. I added the test JSON parameters but for some reason it doesn't like the data. Can someone help me figure out what I am doing wrong? I want to insert a new row for every "store" value so in this case it would add 3 rows for store A, B and C and all the same remaining values.

{
    "store": [
        "Store A",
        "Store B",
        "Store C"
    ],
    "service": "remodel",
    "name": "johnson",
    "email": "johnson@johnson.com",
    "phone": "+1555987654",
    "address": "123 Main St, Dallas, TX, USA"
}

Thanks,

Hi @Miotx,

The loop input needs to be an array, but you are currently passing the whole startTrigger object (dictionary) as an input. One solution would be to create an intermediate block, and extract the array, for example:

Let me know if this solves the problem!

1 Like

Worked like a charm! Thanks so much!