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.

attachment not getting download in workspace

Rosy14
Kilo Sage

Hi,

i have a button to download the attachment. the sys_attachment table i added workspace view. but it is not downloading rather showling like this. plz help.

Rosy14_0-1709886017078.png

 

var attSysID;
var gr = new GlideRecord("sys_attachment");
gr.addQuery('table_sys_id', current.sys_id);
gr.query();
while (gr.next()) {
    attSysID = gr.getValue('sys_id');
}
var URL = "/sys_attachment.do?sys_id=" + attSysID;
action.setRedirectURL(URL);
current.u_report_flag = 1;
current.update();
2 REPLIES 2

Community Alums
Not applicable

I checked that.. the glideAjax part is not mentioned.