inbound email action condition for empty target / table?

Ahmet1
Tera Expert

Hi,


We are trying to setup an email to go out as a reply to anyone that emails the instance email address where the email has not done anything (stuck in limbo) i.e. Target was empty , Target table was empty etc in sys_email table.

 

We have tried this via inbound action with condition as Target = (left this blank to see if it will work) and seperately Target = null , these have not triggered the inbound action email. 

We have tried the same via flow designer and notification both which haven't worked, it seems like we can't select a condition 'is empty' as it doesn't exist and there is only is or is not due to Target field being a reference type field.

 

Is there any other way we can try that is possible?

5 REPLIES 5

andersbogsjo
Tera Guru

We have created a Business Rule (before) in sys_email table with the Condition

Type = recieved AND Target is NULL AND State Changes to Processed

Then the Script triggers an event, that triggera a Notification which is the reply 🙂 
The script looks likes this:

    var parm = '';
    //Check if the user that sent the email is in the sys_user table
    if (current.user_id == '') {
        parm = current.user.toString();
        gs.eventQueue(<your_event>, current, parm);


    } else {
        parm = current.user_id.email.toString();
        gs.eventQueue(<your_event>, current, parm);

    }
 
Works for us
Regards
Anders