Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Problems when trying to connect variables from a flow in a script

    Posted 12-15-2023 06:00
    No replies, thread closed.

    Hello.

    I have problem to connect variables between a flow and script.

    In the flow I take a participant data and in the script i put the same name in the  variable and mark inbound type

    This is my flow

    And this is my script

    What am I missing or what am I doing wrong?


    #ArchitectureandDesign

    ------------------------------
    Francisco Ruiz Pastor
    LogiRAIL
    ------------------------------


  • 2.  RE: Problems when trying to connect variables from a flow in a script
    Best Answer

    Posted 12-15-2023 09:14
    No replies, thread closed.

    Hello, Francisco.

    I think the best way to do this, is create the variable in your script and make sure it's published.  Then before you send the call to a queue, create a Set Screen Pop action.  Select the script, and then assign the value/variable from the flow in the field in the Set Screen Pop action that matches the variable you created.  This will send the value from the flow to the script for the agent to use.

    Thank you,



    ------------------------------
    Jason Tripp
    Independent Health Association, Inc.
    ------------------------------



  • 3.  RE: Problems when trying to connect variables from a flow in a script

    Posted 12-18-2023 10:18
    No replies, thread closed.

    Hello Jason, thanks for your reply.

    I have done what you asked me, but it still doesn't work,

    I will also show you my script in case the error comes from there

    When i do the test i will see this



    ------------------------------
    Francisco Ruiz Pastor
    LogiRAIL
    ------------------------------



  • 4.  RE: Problems when trying to connect variables from a flow in a script

    Posted 12-18-2023 10:29
    No replies, thread closed.

    Francisco,

    I missed the variable set up in your earlier post.  The variable in the Script should be an input variable.  This will allow it to pick up the input from the Call Flow.

    Thank you,



    ------------------------------
    Jason Tripp
    Independent Health Association, Inc.
    ------------------------------



  • 5.  RE: Problems when trying to connect variables from a flow in a script

    Posted 12-18-2023 10:49
    No replies, thread closed.

    Hi jason, yes i pick up input variable but dont work, also the script is a inbound script



    ------------------------------
    Francisco Ruiz Pastor
    LogiRAIL
    ------------------------------



  • 6.  RE: Problems when trying to connect variables from a flow in a script

    Posted 12-18-2023 12:41
    No replies, thread closed.

    Francisco,

    It looks like everything is fine in the script variable wise.  It also looks like you are setting the screen pop in the in queue flow, based on your screen shot, if the caller does not wait in the queue until the step to set the screen pop is reached, it won't pass along that value to the scrip.  Is this script also the default script for the queue or are you setting the screen pop in the inbound flow as well, z-techTEST?  If you don't make it through all the steps in the in queue flow before the call reaches the agent from the queue, the variable value will be the default value of "".  Unless you wanted to pass information from the in-queue flow to the agent, the best place to set the value you want in the screen pop is from the inbound flow.  

    Thank you,



    ------------------------------
    Jason Tripp
    Independent Health Association, Inc.
    ------------------------------



  • 7.  RE: Problems when trying to connect variables from a flow in a script

    Posted 12-18-2023 13:31
    No replies, thread closed.

    Hi Jason

    It is already solved, in the flow, before the pop up I have an API that does not work well, hence the problem.

    Thank you for your help and sorry.



    ------------------------------
    Francisco Ruiz Pastor
    LogiRAIL
    ------------------------------