function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkatSanthanamvenkatSanthanam 

Finding the URL of Salesforce instance using Apex Code

I have a similar problem as posted in this forum.

http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=15448

But the solution to this problem as given here doesnt work.

 

Basically, I need to provide the link of a created note in an email. I use the following code.

 

String retURL = new PageReference('/' + thisNote.id).getUrl();

 

But the URL generated is as follows:

/00PS0000000RIQ6MAO

 Any thoughts???

 

Thanks

 

Venkat