Skip to main content
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
Source Link

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e?retURL=%2F'+o.Id}">Edit</apex:outputLink>

Refer this answerRefer this answer

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e?retURL=%2F'+o.Id}">Edit</apex:outputLink>

Refer this answer

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e?retURL=%2F'+o.Id}">Edit</apex:outputLink>

Refer this answer

added 16 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e'e?retURL=%2F'+o.Id}">Edit</apex:outputLink>

Refer this answer

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e'}">Edit</apex:outputLink>

Refer this answer

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e?retURL=%2F'+o.Id}">Edit</apex:outputLink>

Refer this answer

added 5 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.IdId+'/e'}">Link<">Edit</apex:outputLink>

Refer this answer

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id}">Link</apex:outputLink>

You can use Global variable Action. Salesforce will generate URL for you. You don't have to do Anything.. This button will redirect to Account Edit page..

You just need to pass record Id

<apex:commandButton value="EDIT" action="{!URLFOR($Action.Account.Edit, Account.Id)}" />

Refer this documentation


Another option you could use this

<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+relatedto.Id+'/e'}">Edit</apex:outputLink>

Refer this answer

added 172 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99
Loading
edited body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99
Loading
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99
Loading