Why Declarative actions were failed to evaluate ACL conditions.

Nagaraju21
Tera Contributor

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? 

2 REPLIES 2

Murthy Ch
Giga Sage

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...

Thanks,
Murthy

KristianG
Tera Expert

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