Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 11:39 AM
- Our team has been utilizing Service Portal/Announcements to communicate system-wide announcements to users. In the screenshot below, you can see the example of said banner at the top of the browser window. 
- For the foreseeable future, the Announcement in questions in needs to be visible to employees every other week
- We have not been able to figure out a way for Announcements to automatically publish/unpublish. In lieu of that, we have been manually adjusting the dates of the Announcement. For various reasons it is not desirable to depend on staff to manually publish/unpublish this content for the foreseeable future.
Questions:
- Can an Announcement become visible/hidden at recurring intervals? Or is feature intended to be utilized for singular events?
- Based on the documentation, Campaigns seem useful for delivering targeted, scheduled Content. Despite trying, I have not been able to add Announcements to Campaigns. Is there something I'm overlooking?
- Does the ServiceNow Community have any other recommendations?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 11:13 PM
@jschnoll You can create a bi-weekly schedule job to update the announcement date fields.
var announcementId = '2689b23e87416a10efed74c9cebb35a4';
var gr = new GlideRecord('announcement');
if (gr.get(announcementId)) {
var now = new GlideDateTime();
gr.from = new GlideDateTime(now);//scheduled job start time (bi weekly job)
var endDate = new GlideDateTime(now);
endDate.addDays(7);
gr.to = endDate;
gr.update();
}
Thanks,
Dinesh
Please accept the solution and thumbs up if it helps you
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 11:13 PM
@jschnoll You can create a bi-weekly schedule job to update the announcement date fields.
var announcementId = '2689b23e87416a10efed74c9cebb35a4';
var gr = new GlideRecord('announcement');
if (gr.get(announcementId)) {
var now = new GlideDateTime();
gr.from = new GlideDateTime(now);//scheduled job start time (bi weekly job)
var endDate = new GlideDateTime(now);
endDate.addDays(7);
gr.to = endDate;
gr.update();
}
Thanks,
Dinesh
Please accept the solution and thumbs up if it helps you