You need to sign in to do that
Don't have an account?
SFDC_nkm
How to Get the URL in Dynamically.
Hi To all,
I am creating trigger to send a mail whenever my object field is updated.
I did some functions in trigger and finally send a email.In this Email I want to pass the link also.
I hardcoded the link as 'https://test.salesforce.com/apex/Pagename.' Its working on sandbox & the link is not working on Production.
I want to get the URL in Dynamically.
So that its working on Sandbox & production.
How to do that???
Thanks,
nkm.
You can use Apexpages.currentPage.getUrl();
To see some documenatation about it and other Apex code issues go here http://www.salesforce.com/us/developer/docs/apexcode/index.htm
Ignacio.
In trigger Ho w to get the URL in dynamically???
hi,
Try using custom setting.