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
Badar Ali 19Badar Ali 19 

Fetch Id of Record opened (Softphone)

Hi, I have a use case where a visualforce page is embedded in Softphone (Iframe), In the background, we can open any contact, account or leads record.
 

What I want is that on a button click from softphone(vf page) I can fetch the record Id opened in the background. 

 

Please suggest a way, Is it possible via VF page only or I need to call the apex function?

Note: I am not very familiar with controllers.

SwethaSwetha (Salesforce Developers) 
HI Badar,
While I do some analysis, can you state what is the usecase of having to fetch the record Id opened in the background? How do you intend to use this record Id in the CTI functionality?

Thanks
Badar Ali 19Badar Ali 19
I would want to fetch the id of record that is opened in background and use it for associating with Tasks (Activity).