+ Start a Discussion
someonesomeone 

Get salesforce username via openCTI

Is there a way to retrieve the currently logged in salesforce username using openCTI?
pconpcon
Where / how is your integration code running?  Do you have access to the SessionId or the current user Id?
someonesomeone
This is to be used in an external call centre application. I don't believe I have access to the salesforce session id; not sure about current user id. Ideally I'd like to use some kind of salesforce user identifier (e.g. username or user id).
Kevin GlinskiKevin Glinski
you can use the runApex opencti method https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_runapex.htm to call into an apex method to return the user id