Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can we search to see if HR Case has an attachment?

Community Alums
Not applicable

Experts,

 

I have researched the community and also tried current.hasAttachments() but it is not supporting HR Case table. Can some one guide me how to find out attachment in a case and show in a report.

 

I tried below links but it is based on Incident table:

 

https://www.servicenow.com/community/itom-forum/search-question-can-you-search-to-see-if-something-h...

https://www.servicenow.com/community/developer-forum/how-can-we-check-if-the-record-has-an-attachmen...

 

Thank you!

MK

1 ACCEPTED SOLUTION
2 REPLIES 2

SVimes
Kilo Sage

You could try querying the attachments table itself like here.

https://www.servicenow.com/community/csm-forum/how-to-check-if-a-case-task-has-attachments/m-p/37042... 

Sable Vimes - CSA

Community Alums
Not applicable