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 button in workspace

Rosy14
Kilo Sage

Hi, I have a download button in workspace. it is working fine in native UI. but in workspace i am getting error.

 

This form has not been configured for Workspace. To edit the form, select a different type of record, or contact your administrator.

 

how to resolve it?

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);
5 REPLIES 5

 

If your table is a child table then you need to have the workspace view in it. 

 

Mark the answer Helpful if it resolved your query

 

Thanks