Managing attachments on tasks

Chris Petrone
Tera Expert

I have a question about uploading attachments to tasks. There are instances where someone uploads multiple pasted images to a task, and each attachment gets uploaded with the exact same name: (see attached photo)

 

I am wondering if it is possible to have ServiceNow add incremental numbers to the attachment file name if it is a match to another attachment on the record. (Pasted image1.png, Pasted image2.png, Pasted image3.png).

 

This would help with an integration between another organization we have using Remote Instance Spoke and sending attachments to the linked record in the other instance. Right now, if an attachment has the same exact name, the integration only grabs the first attachment with that name.

3 REPLIES 3

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Chris Petrone 

You can create an before insert business rule on attachment table, that queries if there are any attachments with same name. If there's already an attachment, number can be incremented.

 

Kind Regards,

Ravi Chandra 

Thanks for the suggestion, what if the task is already created and users upload attachment via the Manage attachment button, does this still work?

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Chris Petrone 

Yes. The business rule is on attachment table so it increments whenever attachment is added.

 

Please mark this answer as helpful and correct if helped.

Kind Regards,

Ravi Chandra