Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count

    Posted 22 hours ago

    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
    ------------------------------


  • 2.  RE: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count

    Posted 21 hours ago
    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.
    ------------------------------



  • 3.  RE: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count

    Posted 10 hours ago

    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
    ------------------------------



  • 4.  RE: Architect Loop: Max loop count will be updated dynamically and loop iteration will be according to the updated max count

    Posted an hour ago

    What flow type are you using for this? There are different runtime engines depending on flow type. 



    ------------------------------
    Dave Siukola
    Sr Software Engineer
    ------------------------------