Copy incident UI action

eyal abu hamad
Mega Sage

Hey all, is there a way to not to copy attachment's using the Copy Incident UI action ?

eyalabuhamad_0-1716994201541.png

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @eyal abu hamad 

 

Did you get chance to see the incident properties for the same or UI Action code?

*************************************************************************************************************
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]

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

I looked to the UI action code , it calls a script include that is not editable

Then there is no way to do this mate, sorry. But what is use case not to copy attachment. 

*************************************************************************************************************
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]

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

Bert_c1
Kilo Patron

You can override the 'ajaxFunction_makeIncidentCopy: function() {' in the script include named 'IncidentUtils2SNC, by updating the 'IncidentUtils2' script to include that function and leave out line 46. Another approach may be to update the 'IncidentUtils' script include to override the ' copyIncidentAttachments:' function in IncidentUtilsSNC. I suspect this is the better choice.  there is also the system property named 'com.snc.incident.copy.attach' that you can set to false. You have a choice to make on the approach.

 

Of course, testing is required.