How to make 'Create Outage' button available on Change request Outage related list tab

Koti Boddapati1
Tera Contributor

Hi There,

It is recommended by ServiceNow that we need to use 'Create Outage' button from UI action instead of using 'New' button from List control.

Can any one guide or give best practice how to achieve 'Create Outage' button available on Change request Outage related list tab as we have two UI action on Task table.

find_real_file.png

 

Thanks,

Venkata

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So you can create new UI action on Outages table

what did you configure and where are you stuck?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

# The Change Management Outage tab must display an option to create and link a New CI Outage record via a GUI new button

 Here Our ServiceNow suggests us
# When clicked, must launch a New CI Outage record entry window
# When Saved, must automatically link and relate the Outage record to the CHG record

Hi Ankur,

Our scenario is like below:

# The Change Management Outage tab must display an option to create and link a New CI Outage record via a GUI new button.

# When clicked, must launch a New CI Outage record entry window
# When Saved, must automatically link and relate the Outage record to the CHG record

Here what ServiceNow suggests us through KB is below

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

Cause:
The Outage related list on the Change Request form by default only lets you Edit (add/remove existing records) items in the list.
When the New UI action is enabled and used to create outages, it results in duplicate outages being associated to that Change.
Essentially:
The outage form by design creates a record and links it to the task specified.
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.

 

Please help me out

 

Thanks

Venkat

Aman Kumar S
Kilo Patron

Hey,

  1. Navigate to All > System Definition > UI Actions.
  2. Select the UI Action Create Outage on the Task [task] table.
    By default, the condition is:
    current.getRecordClassName() == 'incident' || current.getRecordClassName() == 'problem' ||current.getRecordClassName() == 'change_request'// add for change req as well

     

     

    Ref link:

    https://docs.servicenow.com/en-US/bundle/sandiego-it-service-management/page/product/task-outage/task/t_AddTheUIActionToAnotherTaskForm.html

Best Regards
Aman Kumar