UI action is not appearing on the form despite configuring Declarative UI Actions & SI logic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
share some screenshots
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago - last edited 5 hours ago
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.