Processing Rules decide which records Plauti Assign processes, based on conditions on their fields.
Plauti Assign processes a record when its Use Plauti Assign field (leadassist__Use_Round_Robin__c) is set to TRUE. To assign records only when they reach a certain point, for example when a Lead's Status changes to Qualified, you can set Processing Rules.
Previously, to assign records only under certain conditions, you needed a 'Before Save' Flow that set this field to TRUE. The Processing Rules can replace those flows.
☞ Rather watch than read? Take a look at this interactive demo.
How Processing Rules work
Processing Rules decide whether a record is processed by Plauti Assign. Match Groups and Match Rules then decide who the record is assigned to.
When a record of an object with active Processing Rules is created or updated, Plauti Assign does the following:
- It checks the value of the record's Use Plauti Assign field. Processing Rules only evaluate records that have not been marked for assignment or processed yet: records where Use Plauti Assign is
FALSEor empty. Records withTRUE,QUEUED,ASSIGNED,NOMATCHorREJECTEDare skipped. - It checks the Processing Rules of the object.
- If the record meets the Processing Rules and their logic, Plauti Assign sets the Use Plauti Assign field to
TRUE. The record is then matched and assigned by your Match Groups as usual.
Processing Rules only ever set Use Plauti Assign to TRUE. They never set it to FALSE, and they do not change the record owner themselves.
Each object has its own Processing Rules and its own activation setting.
Prerequisites
- The default value of the 'Use Plauti Assign' field for the object, and for each of its record types, should be set to
FALSE. Otherwise every new record is marked for assignment anyway, and Processing Rules would have no filtering effect on new records. Upon installation, the default value isTRUEfor Leads andFALSEfor other objects.
If an object has its default value set toTRUE, you are informed of this by a banner on the Processing Rules page.
Read more in Setting default value for Use Plauti Assign.
Configuring Processing Rules
- In Plauti Assign, go to Assign Setup > Object Configuration.
- In the 'Objects' section, in the row of the object, click Configure. The object's setup page opens on the 'Processing Rules' tab.
- Click Configure. The 'Configure Processing Rules' window opens.
- In the 'Configuration' section, turn on Processing Rules Active, if you want to use the processing rules right away.
- In the 'Processing Rules' section, click Add to add a rule.
- At Field, select the field to check.
- At Operator, select how the field value is compared.
- At Value, enter the value to compare with (not applicable for operator 'Is Changed').
- To have the rule also match when a record is created, turn on Apply On Create. See the 'Apply On Create' section below.
- Repeat steps 5 to 9 for each additional rule.
- If you added two or more rules, in the 'Logic' section, select AND, OR or Custom to determine how the rules are applied. For Custom, enter the logic in the Custom Logic field using the rule numbers, for example
(1 OR 2) AND 3. - Click Save.
It might take a short moment for the newly created Processing Rules to appear.
To check that it worked, first make sure the Processing Rules tab now displays an 'Active' label. Then, update a test record so that it meets the Processing Rules. Its Use Plauti Assign field should first change from FALSE to TRUE, and the record should then be assigned by your Match Groups. If it is not, see the 'Troubleshooting' section below.
To stop using Processing Rules for an object, turn off Processing Rules Active and click Save. The saved rules are kept, so you can turn them on again later.
Processing Rule settings
| Setting | Description |
|---|---|
| # | The rule number. Use this number in Custom Logic. |
| Field | The field on the record that is checked. Only supported field types can be selected. Lookup and ID fields cannot be used; for those, use a Before Save Flow that sets Use Plauti Assign to TRUE instead. |
| Operator | How the field value is compared with the value. The available operators depend on the field type. |
| Value | The value the field is compared with. - Text comparisons are not case sensitive: qualified also matches Qualified.- Leave the value empty to check for an empty field, for example Phone Equals (empty). - Enter dates as YYYY-MM-DD and date/times as YYYY-MM-DD HH:MM:SS. The set date is compared with record date/times in the time zone of the user whose record save triggers the rule.- For a Checkbox field, enter true or false. |
| Apply On Create | Whether the rule can match when a record is created. When turned off, the rule only matches when an existing record is edited. |
Apply On Create
Apply On Create controls whether a Processing Rule can match when a record is created.
- Apply On Create turned on: the rule is checked when a record is created and when it is updated.
- Apply On Create turned off (default): the rule is only checked when an existing record is updated. On a new record, the rule counts as not matching.
Turn it off when a matching value may already be present on new or imported records, but assignment should only start after a later update. Value-based operators, such as Equals, check the current value of the field, so any later update of the record can start the assignment. To start assignment only when the field itself changes, combine the rule with an Is Changed rule.
With AND logic, or Custom Logic that requires every rule, use the same Apply On Create setting (on/off) for all rules. If one required rule has Apply On Create turned off, or uses Is Changed, the rules as a whole can never match on new records. Only updates of existing records are then processed.
Logic
The 'Logic' section appears when the object has two or more Processing Rules. The Custom Logic field, where you enter custom logic, appears when you select Custom and the object has three or more rules.
| Logic | Result |
|---|---|
| AND | The record is processed when all rules match. This is the default. |
| OR | The record is processed when at least one rule matches. |
| Custom | Combine rule numbers with AND, OR and parentheses, for example (1 OR 2) AND 3. Only rule numbers, AND, OR and parentheses are allowed. Plauti Assign checks the logic while you enter it, and you cannot save logic with invalid syntax or with a rule number that does not exist. |
Removing and restoring rules
- To remove a Processing Rule, click the delete icon in the row of the rule.
A rule that was already saved is not deleted. It is deactivated and moved to the Inactive Conditions section. A rule you remove before saving is not stored. - To make an inactive rule active again, in the 'Inactive Conditions' section, click Restore next to the rule. Then click Save. Inactive rules don't need to be around forever; you can delete them via Assign Setup > Jobs & Maintenance > Processing Rule Cleanup Manifest.
- If you remove a rule that is used in Custom Logic, update the Custom Logic before saving.
Examples
Assign Leads when they are Qualified
You want Plauti Assign to assign Leads only once they are qualified, both when they are created as Qualified and when an existing Lead is updated to Qualified.
| # | Field | Operator | Value | Apply On Create |
|---|---|---|---|---|
| 1 | Status | Equals | Qualified |
On |
Logic is not needed for a single rule.
To assign only Leads that are updated to Qualified, and not Leads created as Qualified, turn Apply On Create off, and add a second rule, Status Is Changed, with Logic AND. See the Priority example below.
Assign large Benelux accounts
You want Plauti Assign to process Accounts from the Netherlands or Belgium with an annual revenue of 1,000,000 or more.
| # | Field | Operator | Value | Apply On Create |
|---|---|---|---|---|
| 1 | Billing Country | Equals | Netherlands |
On |
| 2 | Billing Country | Equals | Belgium |
On |
| 3 | Annual Revenue | Greater Or Equal | 1000000 |
On |
Logic: Custom, (1 OR 2) AND 3.
Assign Cases when the Priority changes to High
You want Plauti Assign to process an existing Case when its Priority is changed to High.
| # | Field | Operator | Value | Apply On Create |
|---|---|---|---|---|
| 1 | Priority | Is Changed | Off | |
| 2 | Priority | Equals | High |
Off |
Logic: AND.
Rule 1 makes sure the Case is only processed when the Priority changes to High, and not upon the update of another field while the Priority is already set to High.
Processing Rules and your own automation
Processing Rules can work next to automation that also sets Use Plauti Assign to TRUE, such as a Flow, Apex code, an import, or users who change the field.
Plauti Assign checks the Processing Rules each time a record is saved, as long as Processing Rules are active for the object and Use Plauti Assign on the record is FALSE or empty. What happens to a record therefore depends on when your automation sets the field.
Who or what sets Use Plauti Assign to TRUE |
When | Result |
|---|---|---|
| A user or an import | In the save itself | The Processing Rules skip the record, because Use Plauti Assign is already TRUE. Plauti Assign processes the record as before. |
| A 'Before Save' Flow (a record-triggered flow optimized for Fast Field Updates) | During the save, just before Plauti Assign runs | The Processing Rules skip the record, because Use Plauti Assign is already TRUE. Plauti Assign processes the record as before. |
| An 'After Save' Flow (optimized for Actions and Related Records) or Apex code that updates the record | After the save, in a separate update | The Processing Rules were already checked during the first save. If a rule matched, the record was already sent to assignment. Setting Use Plauti Assign to TRUE again assigns the record again. |
Make sure automation that runs after the save does not set Use Plauti Assign to TRUE for records that Processing Rules have already sent to assignment, or these records are assigned twice. To prevent this, only let the automation run when Use Plauti Assign is FALSE or empty.
Things to keep in mind
- Records already processed by Plauti Assign are skipped. Processing Rules do not evaluate records where the 'Use Plauti Assign' field value is
TRUE,QUEUED,ASSIGNED,NOMATCHorREJECTED. To have such a record processed again, for example to reassign it, set Use Plauti Assign toTRUEmanually, or with automation as explained in Reassigning Records with a Flow. Read more in Using the Use Plauti Assign field. - Saving records is not blocked by Processing Rules. If a rule cannot be evaluated, for example because of a value in the wrong format, that rule counts as not matching and the record is saved normally. Plauti Assign sends an error email to the address set at Error Email Notification Address in the App Settings.
- Deploying to other orgs. Processing Rules are stored as custom metadata, so you can move them from a sandbox to production with a change set or another deployment tool.
Troubleshooting
Problem:
A record meets the Processing Rules in Plauti Assign, but it is not assigned.
Answer:
Check the following, in this order:
- Processing Rules Active is turned on for the object in Plauti Assign's Object Configuration.
- The object has Trigger Active enabled in Plauti Assign's Object Configuration.
- The value of Use Plauti Assign on the record is
FALSEor empty. If it was alreadyASSIGNED,NOMATCH,QUEUEDorREJECTED, Processing Rules skip the record. - For a new record: the Apply On Create setting is used where needed. See the 'Apply On Create' section above.
- For an existing record: if a rule uses Is Changed, the field must have changed in that same save.
- If Use Plauti Assign changed to
TRUEand then toNOMATCH, the Processing Rules worked, but no Match Group matched the record. Check the Match Log. - If it used to work earlier but not anymore:
- Check whether all rules are still valid, or that maybe a field or value has changed and a rule needs to be updated.
- Also see if an error message email was sent to the error notification address as set in the App Settings.
Problem:
Plauti Assign assigns records that do not meet my Processing Rules.
Answer:
- Check the default value of Use Plauti Assign for the object and each of its record types. It should be
FALSE. If the default value isTRUE, Plauti Assign's core processing will pick up the records right away, before they can be vetted by the processing rules. - Check whether a Flow, Apex or other automation is setting Use Plauti Assign to
TRUE. - Check whether the Logic is set to OR where you meant AND.
Problem:
I cannot edit or save the Processing Rules.
Answer:
- Check that you have the Modify Metadata Through Metadata API permission in Salesforce.
- Check the messages in the 'Configure Processing Rules' window. Save stays unavailable until every rule has a field and an operator, and if the Custom Logic refers to a rule number that does not exist. In that case, a message such as
Rule number 4 can't be used in the filter logic. Only active rules are allowed.appears below the Custom Logic field.