Hi Mainak,
If you haven't done so already, please look at this blog post on Genesys Cloud Functions.
It's got a lot of really useful information.
Thanks,
John
------------------------------
John Carnell
Director, Developer Engagement
------------------------------
Original Message:
Sent: 04-30-2025 14:48
From: Mainak Patra
Subject: Passing the integration credentials to the Genesys cloud function data action code
I have a Genesys cloud function data action which runs a node.js script that calls the aggregates API based on some inputs and returns the output. I am using event to pass the inputs from the data action to the code. However, I am getting error every time that credentials(client_id and client_secret) are empty. It seems even though I am expecting that the credentials for the integration being passed through event.credentials to automatically pass the creds including client_id and client_secret, it seems it is not being passed. The OAuth I am using for the integration is a client credential type standard Genesys cloud OAuth. Am I doing something wrong here? Is there a correct way of passing credentials to the data action function directly(without creating a .env file and storing the creds there)?
#DataActions
#Integrations
#PlatformAPI
#Uncategorized
------------------------------
Mainak Patra
------------------------------