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

How to define id:String in getting openPrimaryTab: Invalid ID:

How to define id:String in sforce.console.openPrimaryTab instead of null in salesforce? here is the code that im using,

and im getting openPrimaryTab: Invalid ID: error. any help?

function OpenTab() {
      sforce.console.openPrimaryTab('{!contact.ID}', '/apex/contactPage?scontrolCaching=1&id={!contact.ID}', true,'contact');