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
ABHILASH SAHOO 8ABHILASH SAHOO 8 

current page id

how to refer to current page id
Abhilash Mishra 13Abhilash Mishra 13
If you want to refer Id parameter. you can use {!$currentpage.parameters.id} or from controller you can apexpages.currentpage().getparameters.get('Id');

But if you want to reference the salesforce Id of the current VF page.
you need to put an extra effort.

one way of doing it is to parse the pagename for apexpages.cureentpage().geturl()
then you can use SOQL to query salesforce id

Let me know if you need more help

Regards
Abhilash Mishra