I am asking about the flow type because there are different runtime services that run different flow types. Call flows do not run on the same engine as Workflows or Digital Bot flows for example. For the most part, the different engines try to have parity with regards to behavior, but there can be exceptions in some cases. If I know the flow type, we can get this directed to the correct team for investigation. I hope this helps.
Original Message:
Sent: 02-17-2026 20:33
From: Marcello Jabur
Subject: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count
Just out of curiosity Dave, do you mind expanding on that?
Do you mean that the results could be different if he is doing that on an Inbound Flow or in a Workflow, for instance?
I would like to know more about that, are there any resources that expands on those differences?
--------
But Subhajit, going back to your question.
Have you tried enabling the Flow Execution History feature (Flow execution history View summary - Genesys Cloud Resource Center) to actually see what is happening to your variables step by step?
I'm just guessing here, but maybe the "Current Index" variable (or in your case: Flow.QuestionLoopIndex) can't be updated to -1 or to any other values, since it's kind of a special variable that the system updates the value by itself every loop... I don't remember if I have ever tried that... So I can't say for sure, but the Flow Execution should be able to confirm that for you...
Could be either that, or maybe the count for your "Max Loops" variable is actually being resulted in "1" instead of "2", which again could be confirmed with the Flow Execution feature.
------------------------------
Marcello Jabur
Original Message:
Sent: 02-17-2026 08:49
From: Dave Siukola
Subject: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count
What flow type are you using for this? There are different runtime engines depending on flow type.
------------------------------
Dave Siukola
Sr Software Engineer
Original Message:
Sent: 02-16-2026 23:37
From: Subhajit Podder
Subject: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count
Hi Oliveira,
I assigned the count of QuestionIDs in the MaxLoopCount variable. Hence, MaxLoopCount = Count(QuestionIDs).
Note: Your English is perfect, don't worry @Oliveira.
------------------------------
Subhajit Podder
NA
Original Message:
Sent: 02-16-2026 13:22
From: Kaio Oliveira
Subject: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count
I see an "update data" where the variable "flow.MaxLoopCount" is being assigned the same value as the variable "flow.QuestionIDs".
In your loop, the value of loops is MaxLoopCount, which, as mentioned above, is flow.QuestionIDs.
Is it correct to leave MaxLoopCount = QuestionIDs?
------------------------------
Kaio Oliveira
GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM
PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
Original Message:
Sent: 02-16-2026 11:28
From: Subhajit Podder
Subject: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count
I am updating the max Loop count with a variable dynamically based on condition in Genesys Cloud CX architect flow. Initially max Loop count was 1. But, after first iteration I updated the max Loop count value to 2 as per condition at the end of the loop and changed the loop index to -1. So that, when the next loop will start, it's initial loop index will be 0 and iterate two more times. Max loop counter updated successfully and first iteration worked as per expectation. But, after one iteration when the loop index became 1 it stopped executing. It was supposed to be executed one more time. What is the reason of that and how can I resolve this?
Note: Actually I need to run a loop where max loop count will be updated dynamically and loop iteration will be according to the max count.
Attachment: 1. Starting of Loop - Max Counter Initialization || 2. End of Loop - Update Max Loop Counter and Loop Index
#ArchitectandDesign
------------------------------
Subhajit Podder
NA
------------------------------