Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  intermittent initial action configured on the home page

    Posted 30 days ago

    A custom action was configured to validate the queue name to show or hide a container, but it works intermittently. Sometimes the validation works correctly, and other times it doesn't.

    works
    not working
    main custom action


    #Scripts

    ------------------------------
    Saul Barrera
    Desarrollador Genesys Senior
    ------------------------------


  • 2.  RE: intermittent initial action configured on the home page

    Posted 30 days ago

    Olá @Saul Barrera, saudações do Brasil!

    Intermittent behavior in script conditions is often caused by timing (the queue context is not populated yet when the custom action runs).
    I'd suggest displaying/logging the current {Scripter.Queue Name} when it fails. If it's empty or different, trigger the validation later (after the interaction is connected/assigned) and, if possible, use a stable key like Queue ID. I´ve used here the same logic in the past:

    Another solution, and I think is more eficcient and I using now, is pass an explicit routing flag from Architect into the script instead of relying on the queue name string. A participant data with the value that´s define wich one script will be visible.



    ------------------------------
    Fernando Sotto dos Santos
    Consultor Grupo Casas Bahia
    ------------------------------



  • 3.  RE: intermittent initial action configured on the home page

    Posted 29 days ago
    Hi @Fernando Sotto dos Santos, greetings from Colombia!
     
    Thanks for your help. I think changing the validation to the Queue ID might be the solution. I'll run the validation and let you know the result. Cheers!


    ------------------------------
    Saul Barrera
    Desarrollador Genesys Senior
    ------------------------------



  • 4.  RE: intermittent initial action configured on the home page

    Posted 29 days ago


    When you get a chance, please mark the reply that helped most as the Best Answer. It helps others with the same question!



    ------------------------------
    Fernando Sotto dos Santos
    Consultor Grupo Casas Bahia
    ------------------------------