The following is an explanation of how to create rules that mimic complex rule logic:
·Use an AND clause to specify multiple conditions within a single rule. All conditions must be met for the actions to be processed.
·Use an OR clause to specify multiple rules. Each rule is processed in order, regardless of the result of the previous rules.
·To stop processing after a set of conditions is met, use the Stop Processing Rules action. After this action, no other rule processing is done for the list item.
For extremely complex rules, we recommend creating a new calculated column in SharePoint and entering the rule logic there. This column can be hidden from views and a simple Replicator Rule can be built that uses the resulting value osf the calculated column.
This section will provide you with a quick overview of what you can use rules for, as well as a few common rule setup examples.
Uses for Rules
Rules are used in order to change the default replication behaviour of list item events within SharePoint. Rules are commonly used for the following:
·Skipping replication of list item events
·Deleting unwanted list items on replication targets
·Changing the event classification
·Redirecting replication to non-default targets
oSee Prioritizing Replication Events for more details.
Skip Replication When List Item Column Does Not Equal Approved (Example 1)
This section will run through a simple rule set up in which Replication will be skipped for any items that have not been approved.
1.Give your rule a name, and description.
2.Select List Item Column as the rule condition.
3.Select Skip Event as the rule action. Then select Next.
4.Enter a list item column which your test condition is matched against. In this example, the list item column name is Approval, and the test condition is "not equal to" the state of Approved, stating that in the event that the item's Approval column is not equal to Approved, the following action will occur - by selecting next you continue to the action section.
5.This screen reviews the action name, and the action type. This determines what happens when the list item column Approval is not equal to Approved. In this case, Replication is skipped.
6.The last screen provides an overview of the rule, and allows for the enabling of the rule.