Can I create a rule with more than one action?
No. To write a rule that sets a value and sends an
email, program the edit check in two separate rules, one to perform the calculation and
another to contain the email action.
For example, consider the scenario where a rule should send an Initial email when a Serious Adverse Event has occurred and should also send a Follow-up email when subsequent changes are made to the Adverse Event form after the initial email has been sent.
In this scenario, you should create two rules:
- Rule 1: Calculate the value of a hidden item that stores the date the Initial email versus Follow-up email needs to be sent.
- Rule 2: Create an explicit trigger dependency on this hidden item, and specify an action to send email based on its value (Initial or Follow-Up).
You can create a rule with multiple actions, with some exceptions.
For a rule, you can create:
- Multiple calculation actions using the Set Value Action dialog box.
- Multiple query actions, as long as the queries are on the same item.
- A combination of the previous two.
You cannot create multiple query actions if the queries are on different items.
Note:
Multiple query actions appear as additional lines in the Rules report.Parent topic: Rules