How to get parent id from the URL in Salesforce?

Sample Code:

Id parentId = ApexPages.currentPage().getParameters().get('retURL').substring(0,15);

Cheers!!!

No comments:

Post a Comment