Setting Due Date on Insert based on Order Guide- Only working on one RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 10:50 AM
I have a business rule to set the due date of RITM, if the order guide is NEW HIRE ONBOARDING. However, its only setting one of the RITM and not all. What I am doing wrong? I did check the other RITM fields, and the order guide field is correct on them. I am getting the start date to cascade, but having trouble with the due date. Thanks!
The rule is this-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 12:15 PM
Is order guide filled on all RITMs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2024 08:36 AM
It is set correctly on the other RITM in the REQ/order guide, yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2024 09:04 AM
I take it back... I was COPYing the REQ in my personal testing to make things quick, and those that I COPIED did not show the order guide and that is why it was failing. If I manually did the correct process in the order guide, it was working.
COPY at sc_request does not copy everything, just the components. Noted!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 07:10 AM
Running into problems with INSERT before/after rules not seeming to run in the order they are set.
For example, on our onboarding order guide the main onboard RITM has a variable for START DATE that I copy to the RITM field ONBOARD START DATE on insert before order 50. I then cascade that to all other RITM in the same REQ on insert before order 60 (I could not use order guide condition as the order guide is NOT SET yet on the other RITM at this point somehow),
Finally, at insert before order 100 is where all RITM get their DUE DATE calculated against the DEFAULT SLA field that exists on the ITEM that the form uses. The whole point of this is to make the DUE DATE = START DATE so long as the START DATE is further out than what the SLA would otherwise provide; we have it now on the super rare case a manager actually fills it out ahead of time, that the tickets will breach before the person shows up.
My script to do this though, when the insert before 100 runs to set the due date, the START DATE is not there yet on all except the first RITM (log statements), which makes no sense to me. I can see on the INSERTED record that there is already 3-4 updates done, and things are not going in the order that I show on the rules.
I need to get the DUE DATE correct before the SLAs get attached, but things are not going in the order I expect.