how to check current incident update has any attachments in flow?

gunasekaran_s
Tera Contributor

flow is trigger is each unique change in the record but I want to know my current update has any attachments 

2 REPLIES 2

shun6
Giga Sage

Hi @gunasekaran_s,

When you add an attachment to an incident, a new record is created in the 'sys_attachment' table.

Therefore, you can check whether your current update has any attachments by querying this table.

Query condition is like 'Tbale sys ID' is 'Trigger > Incident record > sys_id'  

shun6_0-1742954558520.png

If my answer was helpful, please click the Thumb Icon and mark it as the solution. This way, it can assist others in the future.

Thanks.

Ankur Bawiskar
Tera Patron
Tera Patron

@gunasekaran_s 

you cannot check if on each update a file is added.

When you use Lookup Record on Sys_attachment you can add condition as Created on last 15mins for this record but that doesn't guarantee if file was added during update

what's your business requirement here?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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