Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Logging in Genesys Cloud Function Data Action

    Posted 10 hours ago

    Hi all. I'm pretty new here, just my 4th week in, so still learning everything.

    One thing I was wondering is... from my past job, I know AWS Lambdas and CloudWatch. But for a Genesys Cloud Function Data Action, how is logging handled? Do console.log() statements end up in Sumo somewhere? Or is debugging/logging handled differently, such as in the Execution History trace?

    Thanks! 


    #DataActions

    ------------------------------
    Daniel Roozen
    Lead AI Solutions Architect, Customer Success
    ------------------------------


  • 2.  RE: Logging in Genesys Cloud Function Data Action

    Posted 10 hours ago
    Edited by Phaneendra Avatapalli 10 hours ago

    Hi Daniel,

    From my experience, console.log() is very useful while developing Genesys Cloud Functions. We used it extensively and validated the output using the built-in Test capability in the Function before using it in a Function Data Action.

    One thing we learned was to always test the Function in isolation first. If it works there but fails when called from a Script or Data Action, it's often worth checking the request body template and input mappings next. In our case, escaping the string inputs in the request body resolved the issue. 

    I documented some of our lessons learned here in case it's helpful:

    https://community.genesys.com/viewdocument/using-genesys-functions-in-scripts-for-external-record-creation-and-assignment?CommunityKey=a39cc4d6-857e-43cb-be7b-019581ab9f38&tab=librarydocuments

    I haven't personally used Sumo Logic for custom Function logging, so I'd also be interested to hear how others are handling logging and monitoring in production.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 3.  RE: Logging in Genesys Cloud Function Data Action

    Posted 9 hours ago

    Yes, that is helpful. Thank you for the tips and lessons learned.

    I did notice that it was being logged during the Test run, but yes, I was mainly interested in logging and monitoring in production (or even during dev/QA calls).



    ------------------------------
    Daniel Roozen
    Lead AI Solutions Architect, Customer Success
    ------------------------------



  • 4.  RE: Logging in Genesys Cloud Function Data Action

    Posted 9 hours ago

    You're welcome! In our case, we primarily used the built-in Test capability while developing and validating our Functions, so I don't have first-hand experience with production logging or monitoring beyond that.

    I'd be interested to hear how others are handling observability in production as well whether they're relying on native Genesys capabilities or integrating with external platforms such as Sumo Logic.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------