Thursday, 12 December 2013

Detail Page Link in Apex Class

Hi

below is the code where you get detail page link in Apex Class or trigger.

str= System.URL.getSalesforceBaseUrl().getHost();
str = str + '/'+ oldOpp.Id;
System.debug('---------System URL-----------------'+ str);

No comments:

Post a Comment