Announcement Templates

Krosenthal
Kilo Contributor

Is there a way to configure the Announcements module so that it prompts the user to select a template when creating a new announcement? Ideally, it would be set up like the Change module. User selects announcements and then selects from Normal, Emergency, etc. We would like to do this so that each defaults to a specific display style, etc.

I know I can create announcement templates but am looking to make this a more streamlined process.

 

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

The simple way to do this would be to set up an interceptor for the announcements table.  An interceptor has the ability to 'intercept' a certain URL (like the one for creating a new announcement record) and then present the user with a list of options to choose from.  These options can be configured as alternative template links for your announcement form.  You can create a new interceptor record by navigating to 'System Definition -> Interceptors' in your left nav.

Then you can set up template records for your announcement fields however you want.  You can configure the interceptor answers to apply the template using the link URL as shown here.

https://docs.servicenow.com/bundle/london-it-service-management/page/product/problem-management/task...

View solution in original post

2 REPLIES 2

Mark Stanger
Giga Sage

The simple way to do this would be to set up an interceptor for the announcements table.  An interceptor has the ability to 'intercept' a certain URL (like the one for creating a new announcement record) and then present the user with a list of options to choose from.  These options can be configured as alternative template links for your announcement form.  You can create a new interceptor record by navigating to 'System Definition -> Interceptors' in your left nav.

Then you can set up template records for your announcement fields however you want.  You can configure the interceptor answers to apply the template using the link URL as shown here.

https://docs.servicenow.com/bundle/london-it-service-management/page/product/problem-management/task...

CapaJC
ServiceNow Employee
ServiceNow Employee

The "Create New" module for Change Management links to an Interceptor. The Answers for that Interceptor link to different URLs based on what you select. Two of them set the "type" field of the change_request record using the sysparm_query URL parameter, the third Answer redirects to a Catalog item.

Click the Create New module, then click the Edit Interceptor button in the upper right of the resultant page. It will take you to the Interceptor for change_request. Note the "Intercepts" field with a value of "change_request.do". Yours would be "announcement.do".

Interceptors don't look well documented, this was all I could find:
https://docs.servicenow.com/bundle/london-platform-administration/page/administer/task-table/task/t_ModifyTheTaskInterceptor.html