The CreatorCon Call for Content is officially open! Get started here.

Two different outages related lists

Abbottronix
Tera Guru

There are two different Outages related lists I can add to my problem record; one is "Outages", and the other is "Outages->Task Number". I can add pre-existing outages to my problem record from the Outages related list, and I can create new outages to add to my problem record from the Outages->Task Number related list. I want just one Outages related list from where I can add existing outages and create new ones. Is there any way to enable this?

 

Screenshot 2024-03-04 113605.pngScreenshot 2024-03-04 113629.png

1 ACCEPTED SOLUTION

AndersBGS
Tera Patron
Tera Patron

Hi @Abbottronix ,

 

The outages that you can select OOTB refers to different tables:

AndersBGS_0-1709533636038.png

Outages refers to cmdb_ci_outage table, where otuage -> task number refers task_outage table. According to your requirement,  "I want just one Outages related list from where I can add existing outages and create new ones", I would recommend you to utilize "outage", as this refer to the relation between Outages and Problems. 

 

Secondly OOTB, the related list will only have the "edit" button available. To solve this:

1. Right click column header in the related list, go to configure and select list control.

AndersBGS_1-1709533996224.png

Remove the check mark in "omit new button"

AndersBGS_2-1709534051700.png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

View solution in original post

4 REPLIES 4

Harish KM
Kilo Patron
Kilo Patron

Hi @Abbottronix for the Outages related list the new buttton is restricted on the list control, follow the below steps to enable it

right click on outages related list--> configure--> List Control

uncheck Omit new Button// this will bring new button visible on Outages

 

HarishKM_1-1709516178889.png

 

HarishKM_0-1709516147621.png

 

Regards
Harish

Sumanth16
Kilo Patron

Hi @Abbottronix ,

 

Cause

The problem here is adding the New button to the related list causes the behavior. The New button does not appear on the related list by default and must be added via unchecking the Omit New checkbox on the List Control record for the Outage related list.

The New button on a related list creates a new record on the related table and a record on the m2m table which links the new record on the related table to the current record.

The create outage form consists of the outage fields and a task field. It will create an outage record, and an m2m record to link that outage field to the task referenced in the task field. This is not designed to be triggered by a source that contains subsequent linking actions.

The outage form creates the link between the task and the outage specified, then the related list New action completes its processing by adding a link between the outage record that was just created and the task that contained the related list with the New button.

Essentially:

  1. The outage form by design creates a record and links it to the task specified.
  2. The related list New button creates a record and links it to the parent record.

Resolution

Instead of enabling the New UI Action on the Outages related list, use the Create Outage UI Action from the Task-Outage Relationship plugin, see Task Outage.

 

Please refer to below article:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790306

https://www.servicenow.com/community/developer-forum/outages-related-list-issue/m-p/1594107

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

AndersBGS
Tera Patron
Tera Patron

Hi @Abbottronix ,

 

The outages that you can select OOTB refers to different tables:

AndersBGS_0-1709533636038.png

Outages refers to cmdb_ci_outage table, where otuage -> task number refers task_outage table. According to your requirement,  "I want just one Outages related list from where I can add existing outages and create new ones", I would recommend you to utilize "outage", as this refer to the relation between Outages and Problems. 

 

Secondly OOTB, the related list will only have the "edit" button available. To solve this:

1. Right click column header in the related list, go to configure and select list control.

AndersBGS_1-1709533996224.png

Remove the check mark in "omit new button"

AndersBGS_2-1709534051700.png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Thank you, I was given the impression from other sources that this might create duplicates, but I just tested it and I don't seem to be having that problem, so I'll go with this solution.