You need to sign in to do that
Don't have an account?
ccracy
Is there a way to refer to the Server URL inside an Apex Trigger?
I have writen a duplicate check trigger, before insert, that basically iterates over all Contacts to see if a duplicate exists. In case a duplicate is found, i need to set the error message with the link to this contact.
I have the Contact Id, i need to know the server url for creating the link in the triger. Is is possible to get the server URL inside the trigger?
Thanks,
Rohit M.
I have the Contact Id, i need to know the server url for creating the link in the triger. Is is possible to get the server URL inside the trigger?
Thanks,
Rohit M.
If your link appears in the UI then you can use a relative url.
Message Edited by mtbclimber on 09-20-2007 07:41 AM
Apex PageReference Object returns a URL - but is only a relative URL! I was hoping i could use a standard object pagereference and get the URL from there!
Anyway of doing this now?
As I said, pagereference.geturl just gets me the relative URL!
Is there a way of getting Server URL in Apex....