Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Time Off Requests - Set Flag to prevent existing WF from firing

Posted on by

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.  

pastedimage1664987813744v3.png


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:

pastedimage1664987607555v1.png

pastedimage1664987625055v2.png

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?  




Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans