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

Ramz
Mega Sage

Hi Rosy,

 

This error happens because you will need to configure a new view called workspace. Go to Farm Layout or Form Design and create a new view called workspace.

This kb article might help you

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0819411

Thanks

Workspace view is already present

Hi Rosy,

Check the table if it is a Parent/child to make sure both parent and child has the workspace view and make sure 'workspace' is the backend name of it.

Also if your workspace is customised one check in the UI action if Format for Configurable Workspace is clicked .

Do check if any code is written for workspace client script

 

Thanks

 

The table which are extending from it need also have the view or only parant have is enough?