Download attachment button in workspace

Rosy14
Tera Guru

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