Notifications
Clear all
Nov 17, 2021 6:24 am
How to find the id of a particular visualforce page in Salesforce?
1 Reply
Nov 17, 2021 6:29 am
Lets say you wan to find out the id of the opportunity from a visualforce page:
public class YourClass { public string OppId{get;set;} // To capture Opportunity Record Id (Dynamic) // constructor public YourClass (apexpages.StandardController sc) { OppId=apexpages.currentPage().getparameters().get('id'); system.debug('opportunity id'+ OppId); } }