I have a VF page for my LiveAgent chat application. I am using the below JS code to retrieve UserId of the current user without querying.
try {
var agentDetails = liveagent.chasitor.getDetails();
var agentId = agentDetails.agent.userId;
}
This works great. Now that, I would like to retrieve a specific custom field from the User object, is there a way to get it using the above approach? Like:
var agentField = agentDetails.agent.myField__c;
I am familiar with querying for the field value within Controller and make use of it, but I would like to limit my SOQLs for an efficient implementation.