You need to sign in to do that
Don't have an account?
Aswin B S
sforce not defined
I am trying to send a response to chat from code using the sendMessage method.
This is the syntax:
sforce.console.chat.sendMessage(chatKey:String, message:String, callback:Function)
I have also included <apex:includeScript value="/support/console/52.0/integration.js"/>
Still I am getting error while runing LIVE AGENT: Error: ReferenceError: sforce is not defined
This is the syntax:
sforce.console.chat.sendMessage(chatKey:String, message:String, callback:Function)
I have also included <apex:includeScript value="/support/console/52.0/integration.js"/>
Still I am getting error while runing LIVE AGENT: Error: ReferenceError: sforce is not defined
Please try to check by modifying the includescript line like below: Check if it works for you.
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.