How to show the index of 1,2,3,n for my items

Status: Open · Asked by Kenny on · 0 views

Kenny — Question ·

I want to have these following message to my client:
1. Product A
2. Product B
3. Product C
n. Product N

Those products come from iterator module where i have look them up via searching inside my Airtable sheet.
I tried using number counter right after the iterator like this:

Where the setting looks like this:

But the result only shows "3"

How can i achieve this?

Fagun Shah — Reply ·

+1 For this.

I tried same thing in woocommerce multi-product order and it looks like a counter value freeze if it is after iterator and does not increase its value by how many times iterator go through.

Fagun Shah
- Automation Freelancer
- Let's Connect - https://www.facebook.com/fagun.shah.7/
PabblyMember3 — Reply ·

Let us check the same at our end, we will get back to you.

PabblyMember3 — Reply ·
+1 For this.

I tried same thing in woocommerce multi-product order and it looks like a counter value freeze if it is after iterator and does not increase its value by how many times iterator go through.


Hey @Fagun Shah and @Kenny

Would you please check the same at your end. We have made some changes to the system.

Fagun Shah — Reply ·
Hey @Fagun Shah and @Kenny

Would you please check the same at your end. We have made some changes to the system.


Now there is another issue,

It does not increment the value if counter is set to Reset after each workflow execution.

What it should do is this,

If counter is after iterator then its value should increase until all the interator values have gone through.

Like if thare 3 products in woocommerce order then it should increase vallue by 1 for each time/product and should reset for the next order.

But this is not happening currently.

Fagun Shah
- Automation Freelancer
- Let's Connect - https://www.facebook.com/fagun.shah.7/
Kenny — Reply ·
Now there is another issue,

It does not increment the value if counter is set to Reset after each workflow execution.

What it should do is this,

If counter is after iterator then its value should increase until all the interator values have gone through.

Like if thare 3 products in woocommerce order then it should increase vallue by 1 for each time/product and should reset for the next order.

But this is not happening currently.


+1
PabblyMember3 — Reply ·

FYI, if Reset on each workflow execution is set to Yes then, it will be reset to the initial value on each step execution even within iterator loop execution, that's why you are getting the initial value every time.

We will update the help text and label for the same.

You need to set the value to No after resetting the value.

Fagun Shah — Reply ·
FYI, if Reset on each workflow execution is set to Yes then, it will be reset to the initial value on each step execution even within iterator loop execution, that's why you are getting the initial value every time.

We will update the help text and label for the same.

You need to set the value to No after resetting the value.


I know that it is resetting now for each time value goes through iterator.

Currently counter is considering iterator as whole workflow, but it should not.

Here is the scenario,

Imagine you get a woo commerce order with 3 products in it.

If current scenario works properly then counter starting with 0 and Incrementing by 1 and not resetting after workflow will be containing value 3 after adding all the 3 products to google sheet rows.

But when next order will come it will start with 4 and 5 and so on.

I do not want that. So I selected reset after each workflow execution = Yes.

But pabbly is considering 1 round of iterator as 1 workflow execution, which need to be changed.

Counter should reset only after all iterator values have gone through. Not after each time a value goes through iterator.

Fagun Shah
- Automation Freelancer
- Let's Connect - https://www.facebook.com/fagun.shah.7/
Kenny — Reply ·
I know that it is resetting now for each time value goes through iterator.

Currently counter is considering iterator as whole workflow, but it should not.

Here is the scenario,

Imagine you get a woo commerce order with 3 products in it.

If current scenario works properly then counter starting with 0 and Incrementing by 1 and not resetting after workflow will be containing value 3 after adding all the 3 products to google sheet rows.

But when next order will come it will start with 4 and 5 and so on.

I do not want that. So I selected reset after each workflow execution = Yes.

But pabbly is considering 1 round of iterator as 1 workflow execution, which need to be changed.

Counter should reset only after all iterator values have gone through. Not after each time a value goes through iterator.


My use case is similar to this
PabblyMember3 — Reply ·

I can understand but for now, the Counter resets on execution of step. We will update the help text as well.

Kenny — Reply ·
I can understand but for now, the Counter resets on execution of step. We will update the help text as well.

So for now my use case is not possible?
PabblyMember3 — Reply ·

We tried at our end to find out a workaround for the same, but the outcome is not as intended. So your use case is not possible for now.

Anders Nielsen — Reply ·

I have the exact same usecase and also can't make it work. Have there been any improvements to this in 3,5 years?

Back to all forum threads · Log in to reply