Can we access Chat Button Code based on Button Id or Button api name in Live agent . The Button code which is automatically created for us by Salesforce.
Thanks in Advance
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Yes, you can query the object LiveChatButton.
Select DeveloperName From LiveChatButton
UPDATE: I misunderstood the question. To answer, no, you cannot obtain this code other than from the UI as is not exposed though any API.
I can't think why you would want to do that, but technically speaking, if REALLY wanted to do this, you would be able to programmatically reconstruct the code generated by getting the button ID and the image ID, which is stored in a static resource, and using string concatenation...of course, this is a silly idea.