Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How to Exclude Survey Trigger Based on Caller Membership in Assignment Group?

LokeshY_
Tera Contributor

Hi Community,

We have an existing Assessment Trigger Condition configured to generate a satisfaction survey when an Incident is resolved.

Requirement:
We need to prevent survey generation when the Incident Caller is a member of the Incident's Assignment Group.

If Caller belongs to Assignment Group, the survey should not trigger.

If Caller does not belong to Assignment Group, the survey should trigger, provided all existing conditions are satisfied.

Approach Tried:

We created a Script Include to validate group membership using the sys_user_grmember table and attempted to invoke it through the Survey Trigger Condition using the Sys ID filter.
However, we encountered the following error:

com.glide.script.RhinoEcmaError: "current" is not defined.

It appears that the current object is unavailable within the Survey Trigger Condition's JavaScript evaluation context.

Question:
Is there a supported way to dynamically validate the Caller's membership in the Assignment Group directly within the Assessment Trigger Condition?

We would prefer to avoid modifying the auto-generated Assessment Business Rule or introducing additional custom fields.

Any recommendations or best practices would be appreciated.

Thanks!

0 REPLIES 0