Why Declarative actions were failed to evaluate ACL conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2024 10:28 AM
We have updated out of the box declarative action -"Remove" for table "sn_audit_m2m_risk_engagement" with script condition which need to allow Declarative action visible only on Records whose state is "Validate". It is not working when we give this script condition, if we remove it, this declarative action is visible on all records which is not needed. Please refer screenshot for more details.
Can anyone help me with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2024 11:48 AM
Hello @Nagaraju21
The script condition looks not correct. As the Action assignment is on "sn_audit_m2m_risk_engagement" table
you cannot use the table name like "sn_audit_engagement.state".
Instead can you please tell me where the state field is coming from?
Is the field present on "sn_audit_engagement" or "sn_audit_m2m_risk_engagement" table?
If it is on "sn_audit_m2m_risk_engagement" table you can directly write current.state == 1;
or if it is on "sn_audit_management" table try like this:
current.field_name.state == 1;
Let me know if any issue...
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2024 04:36 AM
Hello @Nagaraju21
You can try using the following condition: parent.state == '1'. This will apply the condition to the parent record in this case - Engagement [sn_audit_engagement] table
For additional information: click here