You need to sign in to do that
Don't have an account?

Live Agent Deployment addCustomDetail
Hello I was wondering can I add the addCustomDetail method to the Live Agent deployment code? The Chat button is on a Public website
So currently the code looks like this
We created a custom webpage(pop up) to ask the custom to opt in before initiating the Chat window. If they opt in, the chat window will start and I need the opt in value(boolean) value to be passed to the Chat Transcript record which is attached to the Case record.
o can I add the addCustomDetail method to the Live Agent deployment code?
Thanks
So currently the code looks like this
<script type='text/javascript' src='https://c.la9cs.salesforceliveagent.com/content/g/deployment.js'></script> <script type='text/javascript'> liveagent.init('https://d.la9cs.salesforceliveagent.com/chat', '57290000000PC4m', '00DO00000007EgL'); </script>
We created a custom webpage(pop up) to ask the custom to opt in before initiating the Chat window. If they opt in, the chat window will start and I need the opt in value(boolean) value to be passed to the Chat Transcript record which is attached to the Case record.
o can I add the addCustomDetail method to the Live Agent deployment code?
<script type='text/javascript' src='https://c.la9cs.salesforceliveagent.com/content/g/deployment.js'></script> <script type='text/javascript'> liveagent.addCustomDetail('Opt In', '{True}').saveToTranscript('OptIn__c'); liveagent.init('https://d.la9cs.salesforceliveagent.com/chat', '57290000000PC4m', '00DO00000007EgL'); </script>
Thanks