Page 1 of 1

Adding multiple conditions to Trigger_SendEmail?

Posted: 2014-05-21 15:52
by jlig
Does anyone know how to add a second condition to the SendEmail trigger? Or how to use AND/OR logic under the advanced builder?

- If I go to the Advanced tab, and type in the following condition, it works fine: {omActCompDate} NEQ ""
- But I also need to add a second condition: {omType} EQ "FCP"
Question: How do I combine these conditions to work together? ( using the AND operator)

Here is what the behavior adds to the page with only one condition:
upd_tblcom.registerConditionalTrigger("{omActCompDate} NEQ """"", "AFTER", "Trigger_SendEmail_Sales", 40);

Re: Adding multiple conditions to Trigger_SendEmail?

Posted: 2014-05-28 10:13
by Fred
standard php is used in the advanced condition builder so something like this should work.

Two variables must be true (AND)

Code: Select all

({omActCompDate} NEQ "") && ({omType} EQ "FCP")
One variable must be set (OR)

Code: Select all

({omActCompDate} NEQ "") || ({omType} EQ "FCP")