How to implement the conflict detection logic in change request to custom table?

abhi710
Tera Contributor

Hi,
There is a custom table extending change request, some custom fields like Domain(choice), Data Center(List) are added. New Conflict type should be added as Data center already scheduled. This data center conflict detection should only work for that particular "abc" domain; for rest domains OOB conflict detection logic should trigger. There are OOB UI macro, script includes, UI Scripts, BR for conflict detection. How the conflict detection can be modified for specific domain depending on data center? Where changes needs to be applied
Thanks

9 REPLIES 9

Hi @abhi710 

 

Practically speaking, the answer is no. This is the code we have access to, but I am sure there is much more code that we don't have direct access to. Instead of putting in more effort, it's better to use what is available out-of-the-box.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

I have created a custom ui action on custom table to detect conflict for specific domain based on data center, by query logic using script include returns true if conflict change request is present; we show alert message on conflict and returns false if no conflicting change request is detected and show alert message as no conflict. OOB conflict detection button is from ui macro and ui macro includes ui script and script include for conflict logic. Is there way to call ui macro in ui action?  How can we include this custom logic combined with OOB conflict detection logic? How to disable OOB ui macro and exclude CI already scheduled conflict logic from OOB for that specific "abc" domain ? OR Is there any other possibility to approach for this requirement?

Thanks

Hi @abhi710 

You're putting in a lot of effort, which is great—but as I mentioned earlier, conflict detection isn’t that straightforward.

For the later part of the question, you’ll need to check the conflict properties, where it’s defined when and how the conflict detection works, including which CIs, change windows, etc., it applies to.

Just a heads-up: this isn't an easy area to work with, and there’s typically no support from ServiceNow on this specific functionality.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Shivalika
Mega Sage

Hello @abhi710 

 

There are actually things like - UI Macro, Script include, Business Rule and even UI scripts, apart from that there are some basic elements as well. 

 

So it's not recommended to modify this conflict detection whole process. But maybe create some simple custom thing. If these are the scenarios, don't run the conflict and simply update it to this. I hope you are following the path I mean here. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway,

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNe

EISQCY

 

Hi @Shivalika ,

Could you brief on the basic element as mentioned by you? Could you please elaborate what simple custom logic can be added alternative to modifying whole process. Is it feasible to implement ?

Thanks

Abi