Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

RITM to SCTASK attachment when user added new attachment

Niccolo
Tera Contributor

Thanks to  Sandeep Rajput for this script: Copy attachments from RITM to SC Task:

Niccolo_0-1722321944939.png

 

Sandeep Rajput Can you please share the script when user update attachment on the RITM?

Thanks in advance

3 REPLIES 3

Brian Lancaster
Kilo Patron

Instead of copying attachments, create a related list on the to display the attachments at the bottom of the sc_task.

Thanks @Brian Lancaster 

I tried this method on the link but i dont have any luck.

Hi @Niccolo,

 

We took the approach that Brian mentioned in his link, and made some slight changes to the script.

 

Applies to table: We left this as Global

Queries from table: We set this to Attachment [sys_attachment]

See attached for our script.

 

Hope this helps!

Josh Pirozzi