Managing attachments on tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 03:34 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 07:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 10:04 AM
Thanks for the suggestion, what if the task is already created and users upload attachment via the Manage attachment button, does this still work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 08:43 PM
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