Skip to main content
In the Sales console page, I have created a custom button (using VFP) on the bottom highlighted blue panel. When a contact record is selected then I do not get the context of this record in the VF Page. How do we get it? Please share sample code.

 

Thanks in Advance,

 

Mahesh
1 answer
  1. May 9, 2016, 7:03 PM
    I found the below API is returning it:

     

    sforce.console.getFocusedSubtabObjectId(showObjectId);
0/9000