Thursday, June 29, 2017

How to get the query parameters in visualforce page?

We can get the Query Parameters in Visualforce page using {!$CurrentPage.parameters.QUERYPARAMETER NAME}
For Instance:
https://Salesforce_instance/apex/VFPage?Id=001D000000IRt53&CaseId=003D000000T6bIE
Here we can get the ID and CASEID value from Query Paramerts to VF page like
{!$CurrentPage.parameters.Id} – ID VALUE (001D000000IRt53)
{!$CurrentPage.parameters.CaseId} – CASEID VALUE (003D000000T6bIE) 

No comments:

Post a Comment