Busi rule is not Executing on the change table, when the changes are created by the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 09:18 AM
I have created the after insert BR to update the owner group to other one. But that businesses rule was not executing even though the all the conditions are met.
That was executing when i created the change request manually with the same conditions. But That wasn't executing when the change requests are created by the system.
Please suggest on this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:55 AM
Hi @Mainkanta,
Can you share the BR here?
Also, what did you mean by it's created by the system? How is that triggered?
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:46 AM
Hello james,
Actually we are trying to implement the unauthorized change capabilities. and those are working as expected.
When ever the unplanned ci activity occurs, Then an Emergency unauthorized change will be creating by the system. for all those unauthorized change requests, the assignment group will be set as a "Change Management", by default.
I want to change the group name to some "XYZ", for this i have create the BR to set the assignment group of the change.
We are not receiving the logs as well.
Kindly provide your thoughts on this.
Please refer the below link for the docs related to Unauthorized change request (servicenow.com).
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:58 AM
Hi @Mainkanta ,
I see that your business rule is Active false, Can you select active true and save the BR and try again ?
Primarly see if your getting the logs first, (put a log on 1st time to see if the conditions given by you are met then move to fixing script.)
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 02:01 AM
Hello @Sohail Khilji,
I have activated and tried.
What i have observed here is when i create the change request manually with same conditions on the BR, then it was executing as expected and I'm able to see the logs as well.
But as i mentioned earlier, if the change requests are created by the system. In that case this BR wasn't executing and i'm not able to see the logs as well.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 01:57 AM
Right, have you tried using the Assignment Rule instead of creating a custom BR?