Looping logic

Hello,

I’m trying to set up a workflow that triggers every day at 9 AM, and my goal is to delete all the photos from a specific column. I only need this photos for 24 hours.

However, I’m running into an issue — when I try to set the column value, Glide asks me to select a specific row. That doesn’t make sense to me since I’m using a loop, so obviously it’s going to involve multiple rows.

Can anyone help me understand what I might be doing wrong and how to set this up correctly?

Thanks in advance!

You should select “Current Row” - it refers to the current row in the loop.

2 Likes

@Darren_Murphy so just to be sure, current row means all the rows in the loop correct?

No, it means the current row in the loop.
On each iteration of the loop, the current row will change. So yes, in that sense it means “all rows in the loop”. But the current row only ever refers to a single row.

3 Likes

Hi again,

I just tried running this loop, but it’s not working as expected — it’s deleting everything except the multiple images column. I’m guessing Glide might be restricting this on purpose?

Is there any way to delete the photos from a multiple image column? I even tried removing them manually from the Data tab, but it doesn’t seem to allow that either.

Thank you in advance for your help!

A multiple images column is an array type column. To clear it, you need to use a Set Column Values action with an empty array. Use a Make Array column to create an empty array, and then use that.

1 Like

Thank you man it worked youre the best

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