How do I get the base URL in the formula editor?

I’m building a custom button that when clicked creates a task. In the task comments, I’m building a URL to direct the assignee to the Account Team add page. I need to know the instance I’m on in order to build the button properly.

Is there a way to get the base url (https://na6.salesforce.com) or instance (na6) in the formula builder so I can avoid hardcoding an instance?

Answer

This will give you the Base URL

LEFT($Api.Partner_Server_URL_260, FIND( '/services', $Api.Partner_Server_URL_260))

Attribution
Source : Link , Question Author : Daniel Hoechst , Answer Author : techtrekker

Leave a Comment