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

Hello I got it then a script is required.

You need to write a BR on cmdb_ci_outage table after insert that an Announcmeen is created automatically with trype as banner

Script will be as below:-

var gr=new GlideRecord('announcement');

gr.initialize();

gr.type=52fa79f8e763320075c2a117c2f6a991;

gr.insert();

 

So above code should create the announcmeent automatically you can set the other mapping as your requirement.

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

 

 

Can you please let me know what that sys_id "52fa79f8e763320075c2a117c2f6a991" represents?

It's of type banner try and let me know your result

Yes, announcement is created. But the Name, Title,From were not updated.

Hello Devi, 

Yes because I have not wrtitten then in the script as I am not sure which field you will map to which field