+ 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