Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  GIA Callfloweditor Script

    Posted 02-01-2019 16:14
    HI, I was trying to retrieve the ANI for a call using getCLI(), for some reason, I am getting a null value. This is what I am doing
    def sCLI=context.getCLI();
    context.setAttachedCallData("ANI",context.getVariable("sCLI"));
    #Self-Service

    ------------------------------
    Niharika Chennamadhav

    ------------------------------


  • 2.  RE: GIA Callfloweditor Script

    Posted 02-01-2019 17:28
    Niharika,

    If you're just trying to set it as attached data and not necessarily use it directly, why don't you try something like this:

    context.setAttachedCallData("ANI",context.getCLI());

    That should save you a step of defining an internal script variable if you're not going to manipulate the data.

    If you absolutely cannot move away from this model, may I suggest the following:

    def sCLI=context.getCLI();

    // Log output to determine if the variable is null and that's why it's not setting appropriately
    context.log(sCLI);

    context.setAttachedCallData("ANI",sCLI);

    Since it's locally defined, I don't believe it's accessible under the context reference.

    This may help as well:  https://docs.genesys.com/images/Repo/GIA901_ScriptAPI.zip

    Thank you.

    ------------------------------
    Ivan Ullmann
    Eventus Solutions Group
    ------------------------------



  • 3.  RE: GIA Callfloweditor Script

    Posted 02-05-2019 13:03
    Thank you so much.That worked.

    ------------------------------
    Niharika Chennamadhav
    Global Technology Solutions, LLC
    ------------------------------



  • 4.  RE: GIA Callfloweditor Script

    Posted 02-06-2019 17:40
    How does context.setVuiPreferenceForModule() work? where do I find the VUI preferences values?

    I am trying to do the below
    def sPersona = context.setVuiPreferenceForModule("persona_name", "Visual Default Persona");
    context.setAttachedCallData("PERSONA_SELECTED",sPersona);
    context.log(sPersona);


    Getting the error: Cannot find persona 'Visual Default Persona' in module 'Genesys Multimodal IVR (CE10)' (id 989) in company 'GTS Use Case' (id 41)

    Also for sendSMS()

    How can I send a variable for the recipients number,sender's number instead of actual numbers?

    Thanks in Advance!

    ------------------------------
    Niharika Chennamadhav
    Global Technology Solutions, LLC
    ------------------------------



  • 5.  RE: GIA Callfloweditor Script

    Posted 02-06-2019 22:42
    I tried to change it to first get the VUI preference ,like below,but getting some other error.I feel some kind of plugin or class is missing,Not sure how to fix it.


    def sPersona = context.getVuiPreference("persona_name");
    context.log(sPersona);

    return success;

    groovy.lang.MissingPropertyException: No such property: success for class: Set_Persona

    ------------------------------
    Niharika Chennamadhav
    Global Technology Solutions, LLC
    ------------------------------



  • 6.  RE: GIA Callfloweditor Script

    Posted 02-07-2019 03:17
    Hi,

    try return "success".

    Best regards.

    ------------------------------
    Bernhard Seifert
    Tieto Austria GmbH
    ------------------------------



  • 7.  RE: GIA Callfloweditor Script

    Posted 02-07-2019 11:46
    If I do that, it returns null.

    ------------------------------
    Niharika Chennamadhav
    Global Technology Solutions, LLC
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources