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.

How to hide the default standard template in knowledge table

priyanka Ganta
Tera Contributor

I need to create the duplicate Custom Template same as standard and i need to hide the default standard Template.

1 REPLY 1

MaxMixali
Kilo Sage

Based on my verification of ServiceNow template objects and standard practices, here's the solution:

 

Step 1: Clone the Standard Template

  1. Navigate to the template record location based on template type:
    • Email Templates: System Notification > Email > Templates (sys_email_template)
    • Notification Templates: System Notification > Notifications (sysevent_email_action)
    • Word Templates: System Policy > Templates > Word Templates (sys_template)
    • PDF Templates: System Policy > Templates > PDF Templates (sys_template)
    • UI Templates: System UI > UI Templates (sys_ui_template)
  2. Open the standard template you want to duplicate
  3. Right-click the header bar and select Insert and Stay
  4. Update the Name field to your custom name (e.g., "Custom - [Original Template Name]")
  5. Verify Active is checked
  6. Save the record

Step 2: Hide the Standard Template

Instead of deactivating (which can break system functionality), use Access Controls (ACLs):

  1. Navigate to System Security > Access Control (ACL) (sys_security_acl.list)
  2. Click New
  3. Configure the ACL:
    • Type: Record
    • Operation: Read
    • Name: [Template Table Name] (e.g., sys_email_template)
    • Admin overrides: Unchecked (if you want to hide from admins too)
  4. Click Submit
  5. Open the newly created ACL record
  6. In the Advanced view, add a Condition script:

// Replace 'TEMPLATE_SYS_ID' with actual sys_id of standard template answer = (current.sys_id !='TEMPLATE_SYS_ID');