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
mayank_friend52mayank_friend52 

Can we write trigger for Event Object?

Hello,

I am planning to write a trigger on Event Object.
The trigger will fire when the Event Expires.
Can this be possible?

Thanks,
Mayank
pradeep naredlapradeep naredla
Hi mayank,
     Trigger will fire Only when a insertion or updation or deletion or undeletion happens. If the particular event expires the particular record has to be again updated if it is then u can write the trigger for sure.

But here what happens is if the event is expired then the record will be updated at time ur are logging in so u can write a trigger but it will be fired when u login into your salesforce account.

Hope this will help u 

Regards,
pradeep

mayank_friend52mayank_friend52
Hello Pradeep ,

Thanks for your response.

Thanks,
Mayank
pradeep naredlapradeep naredla
Happy to help u and pls mark it as best answer if it helped u which will be helpful for the community members..

Thanks,
pradeep.
mayank_friend52mayank_friend52
Hello Pradeep,

Is there any mean by which we can update one field of Event when Event Expires and then we can fire trigger.? 
What about workflow to achieve this?

Thanks,
Mayank