> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upflow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 🏷️ Assigning with smart rules

> Bulk update existing customers and invoices when creating or editing a smart rule in Upflow, so the new logic applies retroactively to records already in the platform.

**Goal:** Make a new or edited rule apply to the customers you already have, not only the ones who arrive next.

A smart rule fires when its trigger is met. Customers already sitting in that state don't meet a trigger, so they're untouched until you apply the rule to them deliberately. This is the single most common reason a rule "doesn't work". For what smart rules are, see the [main article](https://docs.upflow.io/en-us/collection-and-collaboration/smart-rules/smart-rules.md).

## What you'll decide

* How to apply a rule to records you already have
* How to handle threshold rules
* How to assign users from custom fields

### Apply new rules to existing records

**Tick "Trigger all active rules for existing entities" when you activate a rule.** Then wait for the sync, which takes longer the more records you have, and check your Customers or Invoices list.

![The option to trigger all active rules for existing entities, shown when activating a rule](https://mintcdn.com/upflow-04dc27cd/5d_3ldZWSNauBKdR/images/Trigger-all-active-rules-for-existing-entities.png?fit=max\&auto=format\&n=5d_3ldZWSNauBKdR\&q=85\&s=96422f42d1e95e72b0beb0d066e2c4e2)

**If you edited a rule that was already active, deactivate it and reactivate it** with that option ticked. Editing alone won't reach records that already matched.

The alternative is to apply the change by hand from your list views, which is worth knowing when you want to see exactly who you're affecting first.

### Assign a workflow

![A simple smart rule assigning a workflow](https://mintcdn.com/upflow-04dc27cd/3lE1UqzP1SNU-ZAj/images/45487977167889.png?fit=max\&auto=format\&n=3lE1UqzP1SNU-ZAj\&q=85\&s=7c97bcf21a5cdcac2e1ce58ca73fd8ce)

Either activate the rule with "Trigger all active rules for existing entities", or do it manually: open your Customers list, tick the Customer column, then click **Actions** then **Assign a workflow** and pick it. For more than 50 customers, click the blue link at the top right of the list first. Invoices work the same way from the Invoices list.

When the rule depends on a filter, apply the same filter to your list view before selecting, so the manual update matches the rule exactly.

![A smart rule assigning a workflow based on an overdue amount filter](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-10.04.36.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=890ddece64ec5001f5ca17793f06764c)

### Threshold rules need a counterpart

Triggers like "when a customer's outstanding amount exceeds or falls below an amount" fire on the moment of crossing, not on the state. Two consequences catch people out:

* Customers already inside the range are never affected.
* A customer whose balance changes but stays inside the same range doesn't trigger anything. A customer sitting at 7k who pays 1k is still above 5k, so a rule watching for "exceeds 5k" stays quiet.

![A smart rule triggered when a customer's outstanding amount exceeds a threshold](https://mintcdn.com/upflow-04dc27cd/3lE1UqzP1SNU-ZAj/images/45487991474833.png?fit=max\&auto=format\&n=3lE1UqzP1SNU-ZAj\&q=85\&s=b006e6df707fdfcba9e35f088cd3003c)

**Always pair a threshold rule with its reverse.** If one unassigns a workflow when the balance falls below an amount, write another that reassigns when it exceeds one. Without the pair, customers accumulate in whichever state they reached first.

Then handle the edge cases with additional rules, based on due, overdue, or outstanding amount as appropriate.

![An additional rule covering customers already inside the threshold range](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-10.06.26.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=38a43285cffadf219add23a5d91768f6)

> [!WARNING]
>
> If you have other active smart rules with their own conditions, account for them in any new rule. Overlapping rules can assign and reassign the same customer.

![A rule written to account for the conditions of other active rules](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-10.07.07.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=41f1964357f6fe912fe2bd5bfaee7382)

If you're unsure how to structure this, share your context with our [Support team](mailto:support@upflow.io).

### Assign users from custom fields

Storing a user's email on the customer lets one rule assign the right owner to every account, which beats maintaining assignments by hand.

![A smart rule assigning users from a custom field containing their email address](https://mintcdn.com/upflow-04dc27cd/42UhFVgUk-opJEp-/images/45487991774481.png?fit=max\&auto=format\&n=42UhFVgUk-opJEp-\&q=85\&s=038a0288075f0920d371ccfe48409a13)

Three requirements:

* The custom field must be **TEXT** type and contain the user's email address.
* **Use one field per user.** To assign three people, you need three fields.
* The users must exist in **Settings > Users**, even if they haven't been invited yet.

**Empty fields are safe.** If a customer has a CSM email but no AE or Sponsor email, the CSM is still assigned and the empty fields are ignored.

![A smart rule assigning users based on a custom field](https://mintcdn.com/upflow-04dc27cd/42UhFVgUk-opJEp-/images/45488009259281.png?fit=max\&auto=format\&n=42UhFVgUk-opJEp-\&q=85\&s=d78890ee77e3590eeee813e00276c873)

To apply this to existing customers by hand, filter your Customers list on the custom field containing the email address, adding a filter per field if you use several. Tick the Customer column, click the blue link if there are more than 50, then **Actions** then **Assign users**. Check that only the intended users are ticked blue and the others show a white box rather than a grey one.

![A smart rule assigning users based on filters](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-10.07.52.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=3a1d8a5535bf102e8a88fa208c99fe2e)

## Key takeaways

* A rule only fires when its trigger is met, so existing records are untouched until you apply the rule to them.
* Tick **Trigger all active rules for existing entities** when you activate a rule. For a rule you've edited, deactivate and reactivate it.
* Threshold rules fire when a value crosses the threshold, not on its current state, so always pair them with a reverse rule.
* To assign users from custom fields, use one TEXT field per user, holding the email of a user who exists in **Settings > Users**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.