How can I use Announcement Widget to display outages?

Devi12
Giga Guru

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.

20 REPLIES 20

I wanted to map Title with Message, From with that of outage from

Let me writeh the ocde give me 5 mins

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.

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.

No the above script is only for creating Announcement, it should have not effect on the Outage table.