You need to sign in to do that
Don't have an account?
Ozymandias
Getting sObject detail page URL through Apex
I'm trying to create an email whose body is hardcoded in an Apex class and I'm running into some problems trying to get the URL for the details page of a Task object. I intend to include a link to this object in the email, similar to what you can do when you create an Email Template using the web UI. I've experimented with the PageReference class but all I've been able to get was a relative URL...server URL wasn't included.
Has anyone here done something similar? Appreciate it if anyone can point me in the right direction.
Has anyone here done something similar? Appreciate it if anyone can point me in the right direction.
Https://na1.salesforce.com/'+taskid+'
I was just wondering if there's some method that could get the full URL since it's pretty straightforward when creating email templates (e.g. {!Account.Link}).
http://ideas.salesforce.com/article/show/10091004/Apex_method_to_identify_salesforcecom_server
Thanks guys.