Custom Delete UI action is not working.

shubham2512
Giga Contributor

Question on UI action -:

I have created a Delete UI action(form) custom on an specific table same as out of box Global UI action Delete.But the custom UI action is not working and it is not deleting the record.

We have used same script as global UI action script in custom UI action.

And I tried same thing on multiple service now instances but it is giving same error as attached on all instances.

 

Anyone can help me.

1 ACCEPTED SOLUTION

We are getting error due to script is able not access window object.

Resolution -: There is a check box called 'Isolate Script' on Ui action table, we need to mark it false in order to use the window object, london onwards.

 

Thanks.

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shubham,

Why to create custom delete UI action and not use out of box one?

Regards

Ankur

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

Hi Ankur,

 

Q. Why to create custom delete UI action and not use out of box one? - 

A. I have to show that Ui action only on some specific table and for some specific user.

So I created custom UI action on table specific and provide condition for users in condition fields.

Hi Shubham,

Can you share the script of that UI action?

Regards

Ankur

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

shubham2512
Giga Contributor

Hi Ankur,

 

No worry, It is resolved now.

 

Thanks.