Hi everyone,
We are currently using Genesys Cloud CX with Salesforce Voice in our org.
I am extending the integration with some custom Apex logic to handle bi-directional syncing of ACW (After Call Work) time. Specifically, I have an Apex class that makes REST calls to the Genesys Platform API (/api/v2/conversations/...) to update wrap-up codes and fetch durations.
To get this working, I set up a custom Named Credential and External Credential in Salesforce to handle the authentication for my Apex callouts.
My Assumption & Question: I understand the Genesys Managed Package likely maintains two types of connections:
-
Client-Side: The user session for the Softphone/CTI (User Context).
-
Server-Side: A background connection used for syncing call logs/tasks to Salesforce (System/Integration Context).
Is it possible to "reuse" one of those existing connection established by the Managed Package for those callouts to close the ACW?
Or is the package's authentication strictly isolated in its namespace, requiring us to maintain this parallel Named Credential for our custom logic? Or could the users session be used for those callouts?
I want to ensure I'm following best practices and not creating redundant connections if the managed package exposes a global method or token for this purpose.
Context (Code Snippet): Here is a simplified version of the callout logic I am using:
Any advice on the recommended architecture for extending the integration would be appreciated!
Thanks
#Integrations#PlatformAPI------------------------------
Mario Zoske
n/a
------------------------------