I am integrating a third-party site with Salesforce LiveAgent to include passing in an external ID for a Contact record.
Following the instructions at this site I have a simple web page set up (omitting irrelevant portions, IDs and URLs sanitized):
This works: it brings up a chat window and it connects correctly. However, I need to pass the
externalId variable into LiveAgent somewhere: this functionality is not covered by any documentation or tutorial that I can find.
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
If you are not using a pre-chat form, you need to use the Deployment API. See the example provided in the section called “Deployment API Code Sample” in the Live Agent Developer Guide, see the usage of the addCustomDetail method, you can use it to pass information to the chat or to search/create records based on custom information.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0