Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
hi,
How do you retrieve the URL or the web address or visualforce page address from Apex code? Please advice.
thanks
Paul
The following code should give you that:
ApexPages.currentPage().getUrl();
You can retrieve the URl in apex page by using global variables {!$CurrentPage.URL};
Did this answer your question? if so, please mark it solved.
The following code should give you that:
You can retrieve the URl in apex page by using global variables {!$CurrentPage.URL};
Did this answer your question? if so, please mark it solved.