I have a client that does Time Off Requests 2 different ways, and I want to give them flexibility. Some users create Time Off Requests from the entity itself, while others create "Booking Blocks" by dragging and dropping a Resource Requirement (which creates an empty Booking with a Booking Block on the Schedule Board. Basically I want either way to create a Time Off Request, but not duplicate these...
So, I have a real-time WF that fires on create of a Resource Requirement from the Schedule Board. The idea is that the client wants to use the drag-and-drop to create a Quick Create Time Off Request directly from the Schedule Board. I have done this so far by doing the following:
1. Create Resource Requirement value of "TIME OFF"
2. Create Synch WF that fires on Booking when related Resource Requirement value = "TIME OFF", and creates a Time Off Request record with Booking Time Off Details (which then sets a block on the Schedule Board). See Screenshot.
This is working fine. However, I found an existing Workflow in the environment that fires on Create of a Time Off Request, and/or change of Start Time and End Time. If the related Resource Type = User, and creates a Booking with a 'Booking Status = BOOKING BLOCK" when also blocks the Schedule Board. See screenshot:
So, in effect the Schedule Board will be blocked twice...
I wanted to use the FLAG I set in the first WF to prevent the second WF from firing, but I cannot set a Flag there bc the Booking Entity is not directly related to Time Off Request.
Any ideas on how to prevent the Second WF from firing?