function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Muhammad Hammad 8Muhammad Hammad 8 

Live Agent Query Pre Chat Custom Details

I'm currently using the pre chat form from the documentation
https://developer.salesforce.com/docs/atlas.en-us.live_agent_dev.meta/live_agent_dev/live_agent_pre_chat_forms_code_sample.htm

How can I query the Custom Details such as Name, Case Id, Subject before accepting the case in Apex. Case Id is available in apex only after accepting the chat request.

Also found this but could not understand it.
https://help.salesforce.com/s/articleView?id=000328817&type=1
SwethaSwetha (Salesforce Developers) 
HI Muhammad,
Does https://salesforce.stackexchange.com/questions/163458/save-live-agent-prechat-field-to-beginning-of-chat-log help?