We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

clicking on new button in related list gives an alert : failed to execute action

Shivani4532
Tera Contributor

In the service operations workspace, in related list -  child incidents, related records tab, there is a new button.
We have to customize the button in such a way that it opens a modal pop up with 3 options in the dropdown. Based on the user selection, it has redirect them to specific catalog item.

I have tried using declarative actions, which I implemented as client script.

Shivani4532_0-1770837282909.png



However, when I try to click on New1 button in workspace it gives an alert. "Failed to execute action. Please contact system administrator"

Shivani4532_2-1770837489989.png

 

Shivani4532_1-1770837438227.png

Modal shows up as expected on the New1 button click.  However, we are able to see the alert behind it.

I'm looking for some guidance on this. Any help would be really appreciated.


7 REPLIES 7

@Ankur Bawiskar,

Yes, I have tried this in my PDI as admin, yet this shows error.

@Shivani4532 

any reason to give timeout?

did you try adding small script and see?

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


My script did not have timeout, even then it was giving this error.

I gave timeout because, Modal is waiting on the screen for the user to pick an option from dropdown. So, I gave timeout thinking that it is failing due to the wait time. Even if I gave timeout this does not work.