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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @abhi710 

The change conflict is complex and not easy to modify or add a new type. There are many dependencies and logic involved in the backend. First, check the conflict properties, then review the OOTB (Out-of-the-Box) UI to check for conflicts in the change form. After that, you can add your new component there. In the backend, there is a script included that you will need to modify as well. Additionally, make sure that the changes do not impact the OOTB functionality, or else everything could get messed up.

 

 

AGLearnNGrow_0-1742288042056.png

 

*************************************************************************************************************
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 checked the conflict properties, seems no connection to new requirement. Also checked there are many OOB Script includes for change conflict with complex code logic. Tried applying mild changes as per requirement but not working. Could you please suggest whether the requirement is feasible to implement?

Thanks
Abi

Hi @abhi710 

 

AGLearnNGrow_0-1742304194687.png

 

AGLearnNGrow_1-1742304246983.png

 

 

These are few code which used in conflict detection.

*************************************************************************************************************
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 already checked those BR and few script includes with complex code. Tried modifying as per requirement but not working. Wanted to check if requirement is feasible to implement? 
Thanks,
Abi