Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to call a property in a filter condition in a business rule

VarshaC
Tera Contributor

 

Requirement : BR should run only if "Recipients" field in sys_email table contains any of the emails that are present in property.

example : Let's say if property has "123@abc.com" and "456@abc.com" values. If any new email is ready to send to these "123@abc.com" and "456@abc.com" emails(i.e., "if recipients field has any of these user emails in sys_email table), then BR should run and update type to "send-ignored".

 

So can anyone please assist how to add/call property in a filter condition in BR. Tried adding below filter conditions but didn't work :

1) "Recipients" is one of "javascript:new gs.getProperty("property_name")"

VarshaC_0-1712081507457.png

2) "Recipients" is one of "javascript:new scriptinclude_name().function_name();"

function_name in script include has below code.

function_name: function()
    {
        var emails= gs.getProperty("property_name");
        return emails;
    },
0 REPLIES 0