How can I use Announcement Widget to display outages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 09:22 PM
Hi Community,
There is a requirement to display the outages as announcements in service portal banner.
How can I display the outages as announcement in portal?
TIA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:15 AM
I wanted to map Title with Message, From with that of outage from
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:17 AM
Let me writeh the ocde give me 5 mins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:20 AM
Here it is:-
var gr=new GlideRecord('announcement');
gr.initialize();
gr.type=52fa79f8e763320075c2a117c2f6a991;
gr.title=current.message;
gr.from=current.begin
gr.insert();
Please mark the answer as correct
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:24 AM
But it is creating two outages for an incident.But in outage list it is showing 1 only, But on the incident form under outage related list it is displaying 2 outages with same outage number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 02:28 AM
No the above script is only for creating Announcement, it should have not effect on the Outage table.