UI action is not appearing on the form despite configuring Declarative UI Actions & SI logic

saint
Tera Expert

Hey Experts,

 

I want to create a UI action on the Service Operations Workspace using Declarative UI Actions for SC Task.

Since the condition that determines who can see the UI action and when is quite complex, I plan to call the condition using a Script Include. This will involve passing the current record, running the logic, and returning true if the condition is met.

 

So far, I have created a Script Include with a method that returns true when the logic is satisfied.

 

I understand that I need to configure an Action Assignment in the sys_declarative_action_assignment table, enable the Advanced condition option, and reference my Script Include in the Script condition field.

 

Issue: I do not see the UI action on the SC Task form.


I’m not sure if I’m missing a configuration step.

Currently, I have no idea why it’s not working or what the best approach should be. I would appreciate any guidance or steps I can follow to get a demo working. Once I have that, I’ll be able to figure out the rest.

 

Regards,

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@saint 

share some screenshots

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

saint_0-1767111308807.pngsaint_1-1767111377285.pngsaint_2-1767111469317.png

 

I did find the missing configuration for it. 

Open the Layout Items related record => Then Edit the UX form action layout to map the action.

saint_0-1767112455943.png

saint_1-1767112530405.png

 

 

But the script condition which fetches the conditions from SI to show/hide the button seems to be broken. Need some help there if you're still looking @Ankur Bawiskar 

 

The buttons visible on SOW sc task record no matter if the script returns true or false.