- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 08:48 AM
@Dharaneetharan @Manmohan K yes I have found the solution
The solution is, the condition for workspace UI actions isn't toggled from the UI Action record
Instead, it is toggled from a record on the Action Assignment [sys_declarative_action_assignment] table
Within the record, you must click Advanced view in the related links, and you may have to configure the layout to show the 'Script Condition' field under the Conditions tab
Only here could I control visibility of UI actions in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 12:46 AM
Hi @Andrew McNeill, I've created a UI action for workspace. But i can't able to create action assignment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 08:18 PM
Hi @Andrew McNeill , when you say "Advanced View in the related links" do you mean on the UI action or somewhere else? Related links in my UI action only shows Default View?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 07:04 AM
Hi @Andrew McNeill ,
I have tried approach that you have shared in here. We have tried to Call our script include from Script condition for visibility. But entire script include is running properly but button still visible for that.
// new hr_CaseTransferAjax_copy1().validation(); (for condition added script include)
script condition: current.active && gs.hasRole('sn_hr_core.case_writer') && (current.hr_service.value != sn_hr_core.hr.BULK_PARENT_CASE_SERVICE) && new sn_hr_core.hr_Utils().canRenderUIAction(current,'transfer_case') && new hr_CaseTransferAjax_copy1().validation();
Script include: (Which is not client callable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2026 08:15 AM
The condition field on the UI Action record is evaluated in classic UI, but in Workspace the platform ignores it and defers to sys_declarative_action_assignment instead — which follows different rules entirely.
This is especially tricky with Experience Restricted: enabling it changes the scoping behavior and can cause the action to not appear at all in custom workspaces. The most reliable fix is to put your condition logic inside the Server Script and let it control visibility from there.
I documented the full behavior and the workaround here (in Spanish, Google Translate handles it well): https://breaking-trail.vercel.app/articulos/workspaces/declarative-actions-experience-restricted-dyn...