Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  About the Contract Output of DataAction

    Posted 12-01-2020 11:22
    Hi,

    Please cooperate with me on the contract output of DataAction.

    I use a service called "Bitly" to shorten very long URLs. I want this to be available to agents on Genesys Cloud custom scripts.

    The Input argument is a "very long URL". Output is the URL and processing result shortened by Bitly.

    I defined the DataAction as below and made it work.
    Most have been successful, but the most important "short URLs" don't appear in the items defined in the contract output.
    As you can see, it's successful, but it doesn't contain the "short URL" that you want in the red frame.
    As you can see, the Success Template contains the "short URL" I'm looking for.
    Raw return data and Translation Mapping also appear to be fine.
    I couldn't find any problems in every step.

    If you know the reason why only "short URL" is not output, please let me know.

    Regards,
    #Integrations

    ------------------------------
    Makoto.Nagai
    Itochu Techno-Solutions Corporation(CTC)
    ------------------------------


  • 2.  RE: About the Contract Output of DataAction
    Best Answer

    Posted 12-02-2020 02:47
    Hi,

    I think you should delete output contract data and just use "URL" as string like you did with other output, if not work make new data action and leave the output mapping as default just add output contracts as 3 direct values
    Number, string, and string.

    Hope this solve your issue

    ------------------------------
    Best Regards
    Abdullah Elsheikh
    Hadef Information Technology Co.
    ------------------------------



  • 3.  RE: About the Contract Output of DataAction

    Posted 12-02-2020 07:36
    Hi Abdullah-san,

    Thank you for your reply.
    Thanks to your advice my problem has been solved!

    Best regards,

    ------------------------------
    永井誠人
    Itochu Techno-Solutions Corporation(CTC)
    ------------------------------



  • 4.  RE: About the Contract Output of DataAction

    Posted 12-02-2020 07:41

    Hi Makoto,

    You are welcome, happy to know that issue resolved. 



    ------------------------------
    Best Regards
    Abdullah Elsheikh
    Hadef Information Technology Co.
    ------------------------------



Need Help finding something?

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