What flow type are you using for this? There are different runtime engines depending on flow type.
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
------------------------------