The Calendar Rules component contains the following managed Processes and Flows.


Process Builders


Process Builder - Create Event Log Junction on Calendar Rule Trigger Create

Runs on record create for Calendar Rules Trigger object
Calls flow to create an audit log for the newly created Trigger record
 

Process Builder - Create Event Log Junction on Event Create

Runs on record create for Event object when record type is CalendarRules
Calls flow to create an audit log for the newly created Event record
 

Process Builder - Create Log for Calendar Rule Event

Runs on edit of Event when date is changed and record type us CalendarRules
Calls flow to create audit log for edited Event record.
 

Process Builder - Create Log on Trigger Update

Runs on edit of Calendar Rule Trigger when date is changed.
Calls flow to create audit log for edited Trigger.
If Type == Parent the following will run in this Process
Runs on edit when date is changed on Event of Type Parent.
Calls invocable Apex updateChildrenOnParentUpdate in Apex class CalendarRulesController.cls
Sets Invocable Variable evt in Apex class CalendarRulesController.cls
Apex class makes callout to Calendar Rules in Future Method callEventUpdateFromProcessFlow
Child Events are updated with response from callout.
 

Process Builder - Update Calendar Rule Trigger Children

Runs on edit when Calendar Rule Trigger date is changed.
Calls invocable Apex updateChildrenOnParentUpdate in Apex class CalendarRulesController.cls
Sets Invocable Variable crTrigger in Apex class CalendarRulesController.cls
Apex class makes callout to Calendar Rules in Future Method callEventUpdateFromProcessFlow
Child Events are updated with response from callout.


 

Flows

Create Logs on Calendar Rule Create


1. Start

Check to see if an Event Log Junction Id was passed into Flow

If Yes, move to step 2
If No, create a new record

2. Create a new log record

3. Check if calling Object is Event or Calendar Rule Trigger


If Trigger, update calling record with new log Id created in step 2
If Event, update calling record with new log Id created in step 2


4. Update Event Log Junction with log Id created in step 2

5. END





 

Was this article helpful?
0 out of 0 found this helpful