function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

CTI Active/Available users

I have some trigger logic that determines the ownership of leads based on come criteria from a webform, but I would like to include some code that will attempt to assign the ownership to a user who is currently logged into our call center and ready to receive calls. We are using CTI and the Avaya adapter for salesforce.


Is there any way to find out which users are currently logged into our call center via apex - ideally via a trigger? Everything I've found so far has been javascript...


I can't seem to find where the agent's status ("Ready for calls"/"Not ready for calls"...) is stored, or if it is even stored at all in a way that apex can get to it.


Any assistance is greatly appreciated.