Record Conditions is not working at action assignments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 09:30 PM
When I place the condition at Record Conditions to set role on the 'delete' button visibility over the action assignments. It is not working. The delete button is not appearing at the condition set at the 'Record Conditions ' over the workspace view. However, when i remove the condition, the button visibility works as per the role.
please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 12:04 PM
Hi @narya3 ,
1.Try moving the logic into the Script Condition instead
Instead of relying on Record Conditions, move that logic to the Script Condition — because it gives you more control and logs if needed.
Update your Script Condition like this:
(parent.getTableName() != "sn_grc_profile") &&
(parent.sys_class_name != "sn_vdr_risk_asmt_assessment" ||
(parent.sys_class_name == "sn_vdr_risk_asmt_assessment" && parent.state == "1"))
2.Alternatively, use state.name (sometimes works in Workspace)
You can try this logic instead:
(parent.getTableName() != "sn_grc_profile") &&
(parent.sys_class_name != "sn_vdr_risk_asmt_assessment" ||
(parent.sys_class_name == "sn_vdr_risk_asmt_assessment" && parent.state.name == "New"))
3.Check the "Enable Dynamic Evaluation" box at the bottom if you're using form-level visibility that might change at runtime.
Sometimes this re-evaluates visibility after the record is loaded, fixing timing issues.
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up 👍 !
Regards,
Pratik