# Workflow loop on Aray of JSON

**URL:** <https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801>\
**Category:** Ask for Help\
**Tags:** json, workflows\
**Created:** [May 9, 2025, 1:31pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801 "2025-05-09T13:31:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [May 9, 2025, 1:31pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/1 "2025-05-09T13:31:18Z")

</div>

Hi gliders!  
Am stucking within days in a workflow loop on array of JSON, it doesn’t work(  
Seems there is some mistake or limitation in organizing of such loop)  
Usecase is I store the Audit Answers in Multiple Files Column (MFC) as an Array of JSON items per each Question of Audit. So there is one row per Audit with stored doughter items (Answers) by Array of (JSON per each Question+It’sAnswer).  
I need sometime to rollout this Array of items (Question with Answer) to many rows into helper table for Reporting.  
Trying to use a Workflow Loop on source of this Array - trying as MFC and as Make Array Column from it, but both source does not work in the loop unfortunately.  
Seems the reason is similar to the past issues i have with a loop [Storing and changing values to a variable in webhook Action](https://community.glideapps.com/t/storing-and-changing-values-to-a-variable-in-webhook-action/80168). Just the difference is we have iteration by stored Array now, not by Rows as we had have that time. That @ThinDinh’s solution works well with Rows, but how to work with Array here?  
🤔  
So the questions

- What should be the better source of this Loop (MFC \ JSON Array \ …)?
- How to get the i-th item of such Source (MFC\JSON\_Array) as iteration inside this loop to made Add Rows by each item of Array?  
Thank you in advance 🙏  
===  
Example of MFC for one row, in JSON here:  
{  
[{“rowid”:“hwrqL4bUSFGo5JRLeHk.ow”,“quest”:“What is your first name”,“answer”:“Edgar”},  
{“rowid”:“DQEawGxnRIq7OBJWM2dsPQ”,“quest”:“What is your position”,“answer”:“CIO”}]  
}

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 9, 2025, 1:49pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/2 "2025-05-09T13:49:37Z")

</div>

> [@Alexey\_Baranov1](#):
>
> I need sometime to rollout this Array of items (Question with Answer) to many rows into helper table for Reporting.

I’m curious. If you’re using this with a Helper table, why do you need to add rows?

Normally the way you would do this is start with enough empty rows in the helper table that you need, bring the array into the helper table, unwind it using the miracle method, and then build out the reporting logic.

It should all be completely dynamic without the need to ever be adding or removing rows.

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [May 9, 2025, 2:17pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/3 "2025-05-09T14:17:40Z")

</div>

Mmm, seems interesting, thank you very much @Darren_Murphy, going to do this.  
Probably looping is too hard thing to use with JSON yet(?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 9, 2025, 2:18pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/4 "2025-05-09T14:18:42Z")

</div>

No, it’s quite possible. But it seems to me it’s not necessary in your use case?

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [May 9, 2025, 4:17pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/5 "2025-05-09T16:17:29Z")

</div>

However, the difficulty is that we have dozens of audits conducted, for example, 50, eg, with 40 questions each. But could be even 200x50 or more, so we need counted but hard unpredictable quantity of rows in helper table.  
Would be the idea with empty lines remain optimal here?  
And would be the Miracle Method works well with such size of an array?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 10, 2025, 1:00am UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/6 "2025-05-10T01:00:28Z")

</div>

> [@Alexey\_Baranov1](#):
>
> And would be the Miracle Method works well with such size of an array?

As long as you don’t cross 1 million characters, I think you’ll be fine.

> [@Alexey\_Baranov1](#):
>
> But could be even 200x50 or more, so we need counted but hard unpredictable quantity of rows in helper table.

Just add a big enough number of rows, I think.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 27, 2025, 5:15pm UTC](https://community.glideapps.com/t/workflow-loop-on-aray-of-json/81801/7 "2025-05-27T17:15:27Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
