You need to sign in to do that
Don't have an account?
How do I make my Customer Button URL references "domain independent"?
Hi! I am trying to get me org ready for a server change and am trying to make my buttons domain independent. For instance, I have a button that references a URL:
Button URL: https://mkto-si.na0.visual.force.com/apex/mkto_si__Send_Marketo_Email?contactType=Lead&contactIds={!Lead.Id}
I will no longer be on server na0. How do I make this button work regardless of the domail? I tried the following to no avail:
.../apex/mkto_si__Send_Marketo_Email?contactType=Lead&contactIds={!Lead.Id}
apex/mkto_si__Send_Marketo_Email?contactType=Lead&contactIds={!Lead.Id}
Nothing seems to work.
Thanks for the input. Actually got it working by just enclosing the URl with the domain:
"apex/...."
All Answers
URL.getSalesforceBaseUrl().toExternalForm()
Thanks for the input. Actually got it working by just enclosing the URl with the domain:
"apex/...."