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
mstrattmstratt 

Custom Buttons for Adding Events to Calendar

Is there a way to create a button or custom link which automatically adds an event? We have a custom object, called Installations, with a Project Start and Project End Date. Ideally, there would be a button on the Installation page that when clicked would use this Project Start/End Date, Account Name, and Team Leader to create a new event assigned to the Team Leader (a custom picklist field also on the Installation page).

 

Please advise!

Ispita_NavatarIspita_Navatar

You can write a class in Apex for creating Event with the necessary parameters. Then add a custom button which runs a javascript snippet and will call your Apex call function.

Alternatively you can have a custom button on whose click you redirect user to the standard Event creation date with the desired parameters pre-populated in the page.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

Michelle HansenMichelle Hansen
Ispita - How do you redirect users to the standard Event creation page with the desired parameters pre-populated?