attachments in workspace

VSN
Tera Expert

i have a requirement in configuration workspace to remove attachment icon .

 

VSN_0-1703086163680.png

 

 

20 REPLIES 20

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @VSN 

 

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

 

Description

The User would like to hide the attachment button (paper clip) on an Agent workspace case form.

Resolution

1. Go to this link:
/sys_declarative_action_definition_list.do
2. Open the record name attachments
3. In the related list "declarative action assignments" you should see two actions. One table global the other incident. If you disable the one for the global table that should deactivate the paper clip on AWS case forms.

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

ersureshbe
Giga Sage
Giga Sage

Hi, I agree with the Atul's solution. Additionally, refer to this property associated for the incident form & table - 'glide.ui.stream_icon.incident'

Regards,
Suresh.

Tai Vu
Kilo Patron
Kilo Patron

Hey @VSN 

You can try the below approach to hide the attachment for a specific table in the SOW Workspace.

Open the Record sow in the UX Macroponent Definition [sys_ux_macroponent]. Under related list Child Screen, you will see the UX Screen Attachment SNC.

Now you can modify the Screen Condition to exclude the table you'd like to hide the Attachment.

Timi_0-1703092974183.png

 

Or you can make it more dynamically with System Properties by creating new UX Screen Conditions under related list.

1. Define the name for the Property. => glide.ui.show_attachment_bar.<table_name>

2. New UX Screen Condition with using sample script below. (Make sure the Scripted Condition is checked)

 

(function checkScreenVisibility(params) {
	return gs.getProperty("glide.ui.show_attachment_bar." + params.table, true) == "true";
})(inputProperties);

Timi_0-1703129291508.png

 

 

3. Create a Property for the table you'd like to exclude, and set the value as false.

Sample below for the Incident table.

Timi_1-1703093224620.png

 

Now within the SOW (with the page Record sow), you can manage the visibility of the Attachment in the Contextual Sidebar through a system property with any table you'd like to

 

Cheers,

Tai Vu

VSN_0-1704184864063.pngin my workspace lot of attachements are their, which one i can modify.