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);
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);