Skip to main content
added 12 characters in body
Source Link
Saroj Bera
  • 14.8k
  • 2
  • 20
  • 37

I'm using below line of code in the vf component,this is a part of repeat tag.

Edit
<td class="center"><a href="https://cs14.salesforce.com/{!o.id}/e?retURL=%2F{!o.id}">Edit</a></td>

This is working fine,but when we move to other sandbox or production then i have to replace the https://cs14https://cs14 with corresponding server name.

Is there any way to fetch the values dynamically instead of changing manually. Something like "URL.getSalesforceBaseUrl() "URL.getSalesforceBaseUrl()".with in the above tag?

I'm using below line of code in the vf component,this is a part of repeat tag.

Edit

This is working fine,but when we move to other sandbox or production then i have to replace the https://cs14 with corresponding server name.

Is there any way to fetch the values dynamically instead of changing manually. Something like "URL.getSalesforceBaseUrl()".with in the above tag?

I'm using below line of code in the vf component,this is a part of repeat tag.

<td class="center"><a href="https://cs14.salesforce.com/{!o.id}/e?retURL=%2F{!o.id}">Edit</a></td>

This is working fine,but when we move to other sandbox or production then i have to replace the https://cs14 with corresponding server name.

Is there any way to fetch the values dynamically instead of changing manually. Something like "URL.getSalesforceBaseUrl()".with in the above tag?

Source Link
user7447
  • 99
  • 1
  • 13

How to get the server name dynamically

I'm using below line of code in the vf component,this is a part of repeat tag.

Edit

This is working fine,but when we move to other sandbox or production then i have to replace the https://cs14 with corresponding server name.

Is there any way to fetch the values dynamically instead of changing manually. Something like "URL.getSalesforceBaseUrl()".with in the above tag?