function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sushma  RamakrishnanSushma Ramakrishnan 

Custom button redirection to detail page issue

Hi All,
I have created a Custom button called "Create Notes" on Event Standard Object when user tries to create a new meeting.On click of which user is redirected to Notes Custom object edit page and on click of Save standard button on that page i want the user to be redirected to the Event object Meeting detail page...
Thanks in Advance for any help provided.
My Current COde which is not redirecting :
/a1t/e?what_id={!Event.What}&00Nf00000017Z95={!Event.Id}&retURL=/{!Event.Id}


 
Best Answer chosen by Sushma Ramakrishnan
Sushma  RamakrishnanSushma Ramakrishnan
Hi All,
Thanks for your response but i myself found out the work around on it.
I added &saveURL=/{!Event.Id} at the end of the existing code and it worked for me...!

All Answers

Shazib MahmoodShazib Mahmood
When you click on "new" standard button from the event record, can you post the URL that it has?
Maybe the field ID needs to have CF00Nf00000017Z95_lkd?
Mahesh DMahesh D
Hi Sushma,

Did you try with using the controller method with PageReference.

something like below:

 
public PageReference save() {
    // Ur busines loogic
    return new PageReference('/'+event.Id);
}

If possible please paste your full code so that it will be easy to help you.

Regards,
Mahesh
Sushma  RamakrishnanSushma Ramakrishnan
Hi All,
Thanks for your response but i myself found out the work around on it.
I added &saveURL=/{!Event.Id} at the end of the existing code and it worked for me...!
This was selected as the best answer