A rule keeps a field set for you, on its own. You describe which products it covers and what value it should set, and Zentail keeps that value right as your data changes. For example: set MSRP to Cost * 2.5 on every product where Brand is Acme.
Rules are the new way to automate changes in your catalog. They replace the scheduled bulk actions that were listed under Catalog > Automation. If your old schedules were converted, see If your old schedules were converted.
What a rule is
A rule has four parts:
Name. Pick something that says what the rule is for.
Which SKUs. Conditions that pick the products the rule covers, such as Brand is Acme. Conditions are joined with "and". The rule covers every SKU that matches now, and every SKU that starts matching later. Leave it empty to cover every SKU in your catalog. Archived SKUs are left out, unless a condition asks for them.
Steps. Each step sets one field. A rule has one step or several.
Existing values. Overwrite sets the value on every matching SKU and replaces what is there. Only fill blanks sets the value only where the field is empty.
A rule is always in one of four states:
Draft: saved, but it changes nothing yet.
On: the rule is working. Only an On rule changes your products.
Paused: it changes nothing while it is paused.
Failing: something is wrong with the rule and it changes nothing until it is fixed. See The rule page.
Find your rules under Catalog > Rules in the main menu. If you don't see Rules there, it isn't turned on for your account yet.
A bulk action changes a set of products once. A rule keeps working: it acts again whenever the data it depends on changes.
How a rule decides when to act
You don't set a schedule or pick a trigger. A rule acts whenever a field it reads changes on a SKU it covers. It reads every field used in its Which SKUs conditions, in its cases and in its formulas.
It doesn't matter where the change comes from. An import, an order, a hand edit in Quick Edit, a change from a channel, a bulk action or another rule all count.
The rule editor lists the fields a rule reads under the rule's name: Runs again when any of these change, from an import, an order or a hand edit. If a rule seems to react to something you didn't expect, check that list.
A rule also acts when you turn it on with Apply now, and when you press Run now on its page.
When a field it reads changes, the rule looks at the SKU's current values. It writes a change only if the value would be different. If the SKU already has the right value, nothing is written.
Every change a rule makes waits five minutes before it is written. See The cancel window.
Steps: several changes in one rule
One rule can make several changes. Each one is a step, labeled Step 1, Step 2 and so on. Use Add step to add one and Remove step to take one out. At the top of the editor, the rule is also written out as a sentence that joins the steps with "and".
Each step has the field it sets, and then a choice of how it sets it:
One value. Pick Fixed value to type a value, Formula to calculate it, or Clear to delete the field's value. A formula can use numbers, other fields, + - * / and parentheses. Use Insert field to add a field to a formula. Money values are rounded to two decimals, except Cost.
Cases. Use cases when the value depends on the SKU. Each case has a condition and a value. For each SKU, the first case that matches is used. The last case is always Otherwise. If you leave Otherwise empty, a SKU that matches no case keeps its current value.
Couldn't calculate. A formula can't give an answer when a field it reads is blank, when a field it reads is text instead of a number, or when it divides by zero. The rule leaves that SKU's value as it is. The editor tells you how many SKUs this affects and offers Add a case for blank so you can give those SKUs a value.
A step can use a field that an earlier step sets. But a step can't read the field it sets itself, directly or through the other steps of the rule. Zentail refuses to save a rule that does.
As you build a rule, the editor shows how many SKUs match and how many would change, with one example SKU and its arithmetic. Try another SKU shows a different example. Choose View in Quick Edit to see those SKUs.
One rule per field
Only one rule can set a given field. If you save a rule, or turn one on, and another rule on your account already sets that field, Zentail refuses and tells you which rule it is. You will see a message like Not saved. Winter pricing already sets Item Price. One rule sets each field. If you turn a rule on, the message starts with Not turned on. instead. Below it, a button such as Open Winter pricing takes you to that rule. Drafts and paused rules count too.
The same applies inside a rule: two steps of one rule can't set the same field.
If you need different values for different groups of SKUs on the same field, make one rule and use Cases. Put each group's condition in its own case.
Zentail also refuses a rule that would start a loop, for example one rule that sets a field the second rule reads, while the second sets a field the first reads. The message names the rules in the loop.
Checking and turning on a rule
Choose Save and check to save the rule as a draft. Nothing changes yet. Zentail then checks every SKU the rule covers, and shows the result:
how many SKUs will change
how many are already right
how many it couldn't calculate
how many are skipped because the repricer manages them
how many would join the rule or leave it, if you made changes to the rule
for each storefront, how many listings would be listed or delisted, when the rule changes that
The check also shows a sample of the SKUs that will change, and a CSV download of the full result. A large check keeps running if you leave the page. Open the same link again to see the result.
Under When the rule starts you choose one of two ways to turn it on:
Apply now. Changes every SKU that differs from the rule, after the five-minute window in which you can cancel. If this changes more than 1,000 SKUs, Zentail asks you a second time before it goes ahead.
Future changes only. Leaves the SKUs as they are today. The rule acts on a SKU the next time a field it reads changes.
The cancel window
Changes made by a rule wait five minutes before they are written, so you have time to cancel them. This applies to every change, including Apply now, Run now and Retry run.
To cancel, open the rule and look at the Activity tab. Changes waiting to go out are grouped by what set them off, such as an import file, an order or a person. Each group shows a countdown (Goes out in 4:05). Choose Cancel these changes to stop that group.
If you cancel after the five minutes have passed, nothing is cancelled and Zentail tells you the changes were already written. A change that is written isn't undone by cancelling. To put the old value back, change it yourself, or change the rule.
Pausing a rule cancels everything it has waiting.
Exclusions
An exclusion keeps one SKU out of one rule. The rule leaves that SKU alone, even when a field it reads changes.
A SKU becomes excluded when you choose that yourself:
in the warning you see when you edit a field a rule controls, by choosing Exclude and save
in the warning on the import review, by choosing Exclude these SKUs from the rule
on the check, for SKUs the repricer manages (see below)
To see a rule's exclusions, open the rule and choose the Exclusions tab. It lists each SKU, how it was excluded and when. Choose Remove to bring a SKU back. Removing an exclusion doesn't run the rule right away. The rule acts on that SKU the next time a field it reads changes.
If you delete a rule, its exclusions are deleted with it.
Rules and the repricer
A rule that sets Item Price skips SKUs the repricer manages, because the repricer sets that price itself. Zentail still saves the rule, and tells you how many SKUs it skips, for example Saved. The repricer manages Item Price on 40 of these SKUs. The rule skips them and sets Item Price on the rest. A SKU that leaves the repricer joins the rule on its own.
On the check, The repricer manages shows how many SKUs the rule skips. You can also exclude them, so the rule never reaches them, with a button such as Exclude the 40 SKUs the repricer manages.
Two other fields a rule can't change: Total Quantity, which Zentail works out from your warehouse quantities (set a warehouse quantity instead), and Cost on kits and aliases, whose cost Zentail calculates from their parts. A rule that sets Cost skips kits and aliases.
The rule page
Choose a rule in the Rules list to open its page. The list shows each rule's sentence, its status, its health, its last run and how many changes it made in the last 7 days. Health reads All match, Not checked yet, or counts such as 12 differ from rule and 3 couldn't calculate.
At the top of the page you can choose Edit rule, Run now (for a rule that is On), Pause and Delete. Run now changes the SKUs that differ from the rule right now, after the five-minute window. When you delete a rule, the values it already wrote stay as they are, and its runs stay in Run History.
The page has four tabs:
Activity. Changes waiting to go out, with Cancel, and the rule's recent runs.
Differ from rule. SKUs whose value isn't what the rule would set. This is normal when you chose Future changes only, or when someone edited a SKU by hand. A rule corrects a SKU the next time a field it reads changes.
Couldn't calculate. SKUs the rule couldn't get a value for, usually because a field its formula reads is blank. They keep their current value.
Exclusions. SKUs kept out of the rule.
A rule's page can also show a banner:
This rule is paused. It changes nothing. Choose Review and turn on to start it again.
This rule is failing. A rule fails after three failed runs in a row, or right away when a field it sets no longer exists. It changes nothing until you turn it on again, and it never starts again by itself. Choose Fix in the editor, fix the cause if there is one, then turn the rule on. Run now and Retry run aren't available while a rule is failing.
Converted from a schedule. The rule was made from one of your old schedules.
Run History
Every run a rule makes appears in Run History, next to your bulk actions. A rule's run is listed under the rule's name, with what set it off. Use the Rule filter to see one rule's runs.
Open a run to see each SKU's result: Changed, a skip (Skipped: excluded from this rule, Skipped: no case matched or Skipped: the repricer manages it), or a failure (Failed: Couldn't calculate, which names the blank field). A SKU that already had the right value isn't listed. If a run failed, choose Retry run.
The warning when you edit a field a rule controls
If you change a value that an On rule controls, the rule may change it back. So Zentail warns you before you save.
Quick Edit and the product editor. A box titled A rule controls this field names the rule and what it does to that field. It says Nothing has been saved yet. Choose Cancel, Save anyway (your edit is saved and the rule stays on, so it may change the value back) or Exclude and save (the rule stops changing this product, then your edit is saved).
CSV import. The import review lists a warning for each rule that will set again a value your file sets, with View rows and Exclude these SKUs from the rule. The warning never blocks the import.
The API. When you update inventory through the Zentail API, the response includes ruleWarnings for items a rule controls. The update is still written.
If your edit also changes a field the rule reads, the rule resets the value right after the save. The warning says so.
Turn a bulk action into a rule
When you set up a bulk action in Quick Edit, choose Turn into rule. Zentail opens the rule editor with that action's filter and step already filled in. Nothing runs, and saving makes a draft. Some actions can't become rules, for example one that writes a single storefront's field. The button then shows the reason. For these, see Bulk Actions.
If your old schedules were converted
Zentail is moving the scheduled bulk actions (also called automation rules) to Rules. You don't have to do anything for this. Zentail converts a schedule for you and tells you what happened. Once Rules is on for your account, you can't create new schedules. Build a rule instead. A rule made from a schedule acts when a field it reads changes, where the schedule acted on its timer.
When your schedules have been converted, the Rules page shows a banner, titled Your schedules are now rules. (If none has been converted yet, it is titled Your schedules are moving to rules, or Some schedules need your fix to become rules when only schedules you must fix are left.) It counts how many schedules were converted, how many are waiting on Zentail support, and how many need your fix. Choose a count to open Converted schedules. That page lists each old schedule, how it ran (for example Daily 23:59 ET), and what it became:
Converted · On. The schedule is now a rule and is on.
Converted · Paused. It is now a rule, but paused, because the schedule was off. Review it and turn it on if you still want it.
Waiting on support. Zentail couldn't convert it automatically. It stays a schedule until Zentail support converts it.
Needs your fix. Zentail couldn't read the schedule, so it stays a schedule. Fix its steps or filter, or build the rule yourself.
Not converted. Zentail deleted the schedule instead of converting it. The reason is shown on the page.
Schedules that set the same field are merged into one rule with cases. A converted rule has a From schedule tag in the Rules list. The schedule it replaced is deleted, so it won't run twice. A schedule that is waiting or needs your fix keeps running as a schedule in the meantime.






