+ Start a Discussion
JesseAJesseA 

Recreate standard Activity buttons on visualforce page.

Sorry if this has been covered before, but I think my question is slightly different than most. I have a visualforce page which is going to replace the Open Activities and Activity History related lists on Leads and Contacts with in-line visualforce pages. This is so I can seperate them bases on type and other factors. 

 

What I don't want to change is the standard buttons like New Task, New Event, Log A Call and so on. Is there an easy way to use those standard buttons but not recreate them as a custom button? I can recreate a button like New Task, but only if it points to a specific record type. When I try to recreate the exact nature of the standard button, taking use to record type selection first it doesnt seem to work out.

Soul AgesSoul Ages

Did you try the edit link? /<recordId>/e. Or use the prefix if it's a new record.

Example for an account with Id 001L00000012345: /001L00000012345/e

To access the  new account page: /001/e