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
DLCHDLCH 

Workflow Automotion - Event Creation

Is there a way to create an event based on a field level trigger? I know you can do a field update, task, etc...but I am interested in creating an actual event so that it will show up in the calendar view with the times.
If not, is there a way to create a task that can house a time period (ex: 8:00a-12:00p) that will then show up on the calendar view?

shashi lad 4shashi lad 4
HI
So if i understood it correctly, when workflow fires, you want to create an event. So i think what you can do is when workflow fires, you can do field update on the object , may be a checkbox (flag) and on that object write a trigger (after update) , you can create an event in the trigger. so for ex.
if you have an object name Obj1 than you can create a field called createEvent__c checkbox false.
Now when field level trigger fires you want make this new field checkbox to true. So it will fire the trigger on Obj1(after update) and your event creation code will be in this trigger.
Does that make any sense? Hope it will help

thanks
shashi