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.

Download Attachment

sachin312
Tera Expert

Hi,

I am trying to download a attachment from business rule. Because, I want to download attachment when it is created on "sys_attachment" table. Is it possible?

The only way I found to download attachment is by using action.setRedirectURL('sys_attachment.do?sys_id=' +SOME SYSID) in UI Action. Is there any other way to do this?

Note: I tried gs.setRedirect() in business rule. But no use.

6 REPLIES 6

How are you creating the attachments and adding to the record?  


adiddigi
Tera Guru

Yes, it does that. You have to post the UI Action code. I'm assuming you posted the Business Rule's code.