Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

attachment mandatory requirement

SD_Chandan
Kilo Sage
The requirement is to ensure that when attachments are copied from another record, they do not satisfy the mandatory attachment requirement. Users must upload at least one new attachment on the current record and should not be allowed to proceed with only the copied attachments.
Thank you
Chandan
1 ACCEPTED SOLUTION

@Tanushree Maiti 

I couldn't find a description field on the sys_attachment table.

Could you please point me to the field if it's available in your instance?

I couldn't find it in my PDI but your script mentions to use that

AnkurBawiskar_0-1785772997892.png

AnkurBawiskar_1-1785773217904.png

 

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

7 REPLIES 7

@Tanushree Maiti  Thanks for your solution and response.

Thank you
Chandan

Gilbert35
Tera Contributor

I think that requirement makes sense. If copied attachments are allowed to satisfy the mandatory attachment rule, it defeats the purpose of ensuring that each new record has its own supporting documentation. Requiring at least one newly uploaded attachment helps maintain data integrity, improves traceability, and reduces the risk of users relying on outdated or irrelevant files.

 

One approach could be to distinguish copied attachments from newly uploaded ones with a flag or timestamp. The system can still display copied attachments for reference, but validation should only pass once at least one new attachment has been uploaded for the current record. That keeps the process flexible while ensuring every record has current documentation.

 

I work with a local service business, and we've found that keeping each job's records separate instead of relying on copied files makes audits and customer follow-ups much more reliable. The same principle seems to apply here.

@Gilbert35 
Thanks for your solution and response.

Thank you
Chandan