RITM and TASK attachments

JimmieOdelius
Tera Expert

Hi.

We have an order process where our procurement department puts an order in through the service catalog. In this request they attach an order spreadsheet that needs to be checked later in the workflow.

When the request is submitted it attaches the file to the RITM which is fine and dandy, but in approval and catalog task activities the file is not visible without going to the RITM.

Everyone is working through catalog tasks in our organization. Is there a way to show RITM attached files in the catalog item and also possibly in the approval tickets?

I would also like to be able to do the inverse, showing catalog task attached items in the RITM.

Regards

Jimmie Odelius

6 REPLIES 6

User140988
Kilo Guru

Hi Jimmie,



You can copy attachments from one record to another.


Useful Attachment Scripts - ServiceNow Wiki


GlideSysAttachment.copy('sourcetable', 'sys_id', 'destinationtable', 'sys_id');

Also instead of that you can show a link on catalog task which says

Click here to view attachments of Request Item
and link it to the attachments of request item. If that doesn't help then use the above
logic to copy attachments from multiple tables. This also means that every record is linked to
duplicate attachments.

Regard,
Chandana

Thanks for your reply.



Yeah. Copying the file is something I had looked at already but is unpleasant since we would fill our database with duplicate files quickly.


If these are the only 2 options I guess the link is best. I would prefer if I could reference to the attachments in the RITM though. Is there no way of doing that?


May be you can add a Macro and make it a formatter and add it to   request item, catalog task, approval records. On the macro you can have a field which can store attachments, basically all the attachments are linked to one request item but displayed everywhere. Also from anywhere if an attachment is added, it is linked to RITM, but displayed everywhere.


Hi chandz098, What would the URL be for the link of attachments on the request item?