0

in my one of visualforcepages,i had hardcoded the url like below, https://na34.salesforce.com/home/home.jsp and url will be different for different users and i hardcoded prefix also, in salesforce,now to dnt to hardcode them,i want to in salesforce,where the prefix and url of the org is stored,thanks in advance,

1
  • In my project,i had used like this <apex:outputLink value="na15.salesforce.com{!checkBoxRecord.objectRecord}" target="_tab"> – Satya Dec 15 '16 at 8:22
0

You may use the method System.URL.getSalesforceBaseURL(); in your VF page controller.

How to get salesforce instance url might be helpful.

1
  • how i can get the prefix – Satya Dec 15 '16 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.