Restrict the copy change ui action on change form

Black Coder
Tera Guru

We are in need the "Copy change" Ui action to be restricted only to normal and standard changes form. It means on the emergency type change form users should not be able to see the copy change ui action.

How can we achieve this

6 REPLIES 6

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
You can clone the existing UI action. Put an additional condition in the newly created UI action.
Also populate the override field with the old OOTB copy Change UI action.

 

This will help you not to touch OOTB ui action.

 

 

 


Thanks and Regards,

Saurabh Gupta

Sagar Pagar
Tera Patron

Hi @Black Coder,

 

Add condition in Copy UI action as -

 

existing_condition && current.type == ''normal'' || current.type == ''standard''

 

Thanks,
Sagar Pagar

The world works with ServiceNow

EricDohr
ServiceNow Employee
ServiceNow Employee

There is a UI Action called Copy Change as you are aware.  You could add to a condition similar to (current.type=='standard' || current.type=='normal')  && [the rest of your condition]

 

You may need to double check the logic above, but that should get you close

 

Also, you may want to consider only excluding emergency.  You would not want to copy a standard change, but use the catalog. 

Black Coder
Tera Guru

UI action.PNG

 

I tried what you have mentioned But it didnt work