An account group is a named set of customer or partner accounts that other features target in one step: instead of naming every dealer on a price list, a discount group, a tax group or a trade scheme, you name the group, and xMatix checks whether the account on the document belongs to it. You set groups up once in the Sales or Procurement settings, keep their members current, and then pick them on the records they scope.
Overview
A group has three parts, each on its own tab of the group's record page:
- Rules — conditions on account fields (for example Billing State equals Gujarat) that can build the member list for you.
- Members — the accounts that belong to the group. This is the list every feature actually reads.
- Details — the group's name, type, description and how its rules combine.
Members come from two sources, and one group can use both. You can add accounts by hand on the Members tab, or you can let Process Members add every account that matches the rules. A rule-built list also follows individual accounts: when an account is created or changed, it is checked against every group that has rules, within a couple of minutes. It joins the groups it now matches and leaves those whose rules had made it a member. Members added by hand are never removed this way. An administrator can switch this off with Update rule-based group membership when records are saved (Setup → Feature Hub → Sales → Settings, Account and item groups group; on by default). Accounts that are not saved again are only picked up when someone runs Process Members.
The Account Group Type decides which features can use a group. Price lists only recognise Price groups, discount groups only Discount groups, tax groups only Tax groups, and trade schemes only Scheme and Exclude Scheme groups. A group of the wrong type is not rejected when you pick it; it simply matches no one.
When to use it
Use an account group when the same commercial treatment applies to many accounts and you expect the list to change:
- a dealer tier that gets its own price list (Price group as the price list's Customer Account Group);
- a set of customers on a contract discount (Discount group on the discount group);
- selling companies that share a tax treatment (Tax group as the tax group's Partner Account Group);
- the outlets a promotion targets, or the ones it must leave out (Scheme and Exclude Scheme groups on a trade scheme);
- the outlets a visit plan or route covers, the companies a selling-scope mapping applies to, or the participants in an incentive plan.
If only one account is involved, name the account directly on the record instead.
How xMatix handles it
When a feature checks a group, it looks for a member row that links the account to the group. Price lists, tax groups and trade schemes count only members whose Is Active box is on, and only in a group of their own type. Discount groups also insist on their type but count a member whether or not it is active. Members are matched when the document is priced, taxed or checked for schemes, so changes to a group affect documents processed after the change, not documents already saved.
Process Members rebuilds the rule-based part of the list:
- It reads the group's conditions in their order on the Rules tab.
- It finds every account that satisfies them, combined according to Rule Success Criteria.
- It adds one active member for each of those accounts that is not already a member of the group.
- It removes the rule-made members whose account no longer matches.
Each member records its Membership origin. Rule means the group's rules added it, through Process Members or the save-time check below. Manual or empty means it was added by a user, the API, an import or an integration sync, or that it existed before origins were recorded (members made by earlier Process Members runs were marked Rule). Rule-made members are removed when their account stops matching. Manual members are never removed automatically, and an account that already has a member row in the group does not get a second, rule-made one.
Save-time check. When the Sales setting Update rule-based group membership when records are saved is on (the default), every account that is created, or changed in a field some group's rules test, is queued and checked a minute or two later. This applies whether the change comes from the screen, an import, the mobile app or an integration sync. The account is checked against each group that has conditions and a Rule Success Criteria other than Always (No Criteria). It joins each group it now matches and leaves the groups whose rules had added it once it no longer matches. Groups with no conditions, an empty criteria or Dynamic Member Type Report Data are not touched by this check. Accounts that are not saved again are not re-checked, so run Process Members after you change a group's rules or criteria.
Prerequisites
- Access to the Settings entry of the Sales app or the Procurement app, and permission to create account groups.
- For a rule-based group, the account fields you want to test are filled in on the accounts. A condition on an empty field matches nothing.
- For a scheme-scoped group, the value Scheme has been added to the Account Group Type field (see Configuration).
Procedure
Step 1 — Open the account group list
In the Sales app, select Settings, then Account Group. (The same list is also in the Procurement app's Settings.) The list shows each group's Name, Description, Account Group Type, Dynamic Member Type and Rule Success Criteria. Use the view switcher to see only Price, Discount or Incentive groups.
Step 2 — Create the group
- Select New.
- Enter a Name and choose the Account Group Type.
- To build members from rules, set Dynamic Member Type to Field Filter and, under Field Filter Criteria, choose a Rule Success Criteria. For a group you fill by hand, leave both empty.
- Add a Description that says who belongs in the group.
- Save.
The group's record page opens on the Rules tab.
Step 3 — Add members by hand
- Open the Members tab.
- Select New, pick the Account, and tick Is Active. The form does not tick it for you, and price lists, tax groups and trade schemes ignore a member whose Is Active is not ticked.
- Save. The account appears in the members list.
Repeat for each account. Each row in the members list has Edit and Delete. To take an account out of the group, either select Delete on its row or edit the row and turn Is Active off. An inactive member stays on the list but no longer counts for price lists, tax groups, trade schemes, selling scope, online-store pricing, coupon campaigns or incentive enrolment. Discount groups, visit plans, package components and scheme budgets still count it, so delete the row when the account must leave the group everywhere.
You can also turn Is Active off on a member the rules added. It stays off while the account keeps matching, because the rules never add a second row for an account that already has one. It is removed once the account stops matching. If you delete a rule-made member, though, the next Process Members run or save-time check adds the account again as long as it still matches. To keep a rule-matched account out for good, change the rules or turn its Is Active off.
Step 4 — Define membership rules
The Rules tab holds the Account Group Rules card. Each condition is one row with three columns — field, operator and value.
- Open the Rules tab and select Add condition at the top right of the card. A new row opens ready to edit, set to the first account field in alphabetical order and the operator Equals.
- In the row, choose the account field to test. The list holds every visible account field, including custom fields, sorted by label.
- Choose the operator. Only the operators that suit the field are offered (see Condition (Rules tab)).
- Enter or pick the value. The value control follows the field: a switch for a yes/no field, a date picker for a date, a number box for a number, and a searchable list for a lookup or picklist. For In list, Not in list, Includes (any) and Excludes (all) you can pick several values.
- Add more conditions as needed. Drag a row by its handle on the left to change the order. Select the pencil on a row to edit it again, or the bin to remove it and confirm with Delete.
- Select Save at the bottom of the card. You see Membership rules saved. The Save and Cancel buttons appear only once you have changed something; Cancel discards your changes and reloads the saved conditions.
Saving the rules does not change the members. Rules are only applied in the next step.
Step 5 — Build the members
On the group's record page, select Process Members. You see Running Process Members... and then the message Action Executed. That message means the rebuild has been queued, not that it has finished: it runs in the background. Open the Members tab and refresh it after a short while to see the result.
Run Process Members again whenever you change the rules. Accounts that are created or changed afterwards (a new dealer, an account that moves to another state) are re-checked automatically when they are saved, as long as the save-time membership setting is on; existing accounts that nobody saves are only re-checked by Process Members.
Step 6 — Use the group
Open the record you want to scope and pick the group in its account group field:
| Record | Field | Group type it needs | Which account is checked |
|---|---|---|---|
| Price list | Customer Account Group | Price | The customer on the document |
| Price list | Partner Account Group | Price | The selling company on the document |
| Discount group | Customer Account Group | Discount | The customer |
| Discount group | Partner Account Group | Discount | The selling company |
| Tax group | Partner Account Group | Tax | The selling company |
| Trade scheme | Account Group | Scheme | The customer |
| Trade scheme | Partner Account Group | Scheme | The selling company |
| Scheme condition | Account Group | Scheme | The customer |
| Scheme condition | Exclude Account Group | Exclude Scheme | The customer (members are left out) |
| Scheme budget | Partner Account Group | Scheme | The selling company |
Other records also accept a group, and these do not check its type: selling-scope mappings (customer and selling-company groups), stores (selling-company group), visit plans (the visits are created for the group's members), package components (selling-company group), coupon campaigns (Account Group: only members can redeem the code) and the online store, which prefers a price list whose Customer Account Group contains the signed-in customer over the general list. Incentive plans use the group's members for enrolment whatever its type, but performance tracking for a plan or target scoped by an account group only counts accounts in an active membership of a Scheme group. See selling scope and incentive plans.
Step 7 — Change or remove a group
Edit the fields on the Details tab in place, or select Edit in the page header. To retire a group, first remove it from every price list, discount group, tax group and scheme that names it, then select Delete. Clone copies the group's details only — not its rules or members.
Fields
Account group
| Field | What it means | Notes |
|---|---|---|
| Name | The group's name, shown wherever you pick it | Not enforced, but always fill it in |
| Account Group Type | Which features can use the group | Required. Values: Discount, Exclude Scheme, Incentive, Item Feature, Price, Tax. Must match the feature exactly — see How xMatix handles it |
| Dynamic Member Type | Whether members are built from rules | Field Filter = build from the Rules tab. Leave empty for a hand-maintained group |
| Description | Who belongs in the group and why | Free text |
| Rule Success Criteria | How conditions combine when Process Members runs | Any Rule Is Met in the standard setup. Required when Dynamic Member Type is Field Filter. Empty = every account |
| Rule Success Custom Logic | An expression such as 1 AND (2 OR 3) over the conditions' positions | Only read when the criteria is Custom Logic Is Met, which is not in the standard list |
The Details tab also shows Created By, Created Date, Modified By and Modified Date. The page header shows Account Group Type and Rule Success Criteria as summary figures.
Member
| Field | What it means | Notes |
|---|---|---|
| Account | The customer or partner account in the group | Required |
| Is Active | Whether the membership counts | Not ticked for you on the New form — tick it. Price lists, tax groups and trade schemes count a member only when it is ticked. Selling scope, online-store pricing, coupon campaigns and incentive enrolment skip a member that is switched off. Discount groups, visit plans, package components and scheme budgets ignore it. Members the rules add are always ticked |
| Membership origin | Who made the member: Rule (the group's rules) or Manual/empty (a person, the API, an import or a sync) | Set by the system and read-only. Not on the standard member form or view; an administrator can add it to the view to filter rule-made members |
Condition (Rules tab)
| Column | What it means | Notes |
|---|---|---|
| Field | The account field to test | Any visible account field, including custom fields. Required — saving a row without a field fails with Every condition needs a field. |
| Operator | How to compare | Filtered to suit the field — see the table below. A new row starts on Equals |
| Value | What to compare with | In list and Not in list take several values. Numbers compare by value, so 10000.00 matches 10000; text ignores case |
The operators offered for each kind of field:
| Field kind | Operators |
|---|---|
| Lookup (for example Billing State) | Equals, Not equal, In list, Not in list |
| Picklist | Equals, Not equal, Contains, In list, Not in list, Includes (any), Excludes (all) |
| Yes/no | Equals, Not equal |
| Number | Equals, Not equal, Less than, Greater than, Less or equal, Greater or equal, In list, Not in list |
| Date and date-time | Equals, Not equal, Less than, Greater than, Less or equal, Greater or equal |
| Text | Equals, Not equal, Contains, In list, Not in list |
Contains matches when the value appears anywhere in the field. Includes (any) matches when the field contains at least one of the chosen values; Excludes (all) matches when it contains none of them — use these two with multi-select picklists.
Business rules
- Field Filter needs a criteria. Saving a group whose Dynamic Member Type is Field Filter without a Rule Success Criteria fails with Selection of Rule Success Criteria is mandatory if the Dynamic Member Type is Field Filter!
- No conditions, or no criteria, means everyone. If Process Members runs on a group with no conditions or an empty Rule Success Criteria, every account becomes a member.
- Any Rule Is Met adds an account that satisfies at least one condition. All Rules Are Met (every condition) is supported but switched off in the standard value list.
- Conditions run in their on-screen order. Saving the Rules tab numbers the conditions 1, 2, 3… from top to bottom. Reordering or deleting a condition renumbers the rest.
- Custom logic (only when an administrator has added Custom Logic Is Met) combines the conditions by those numbers with AND, OR and brackets, for example 1 AND (2 OR 3). NOT is not supported, a number with no matching condition counts as not met, and an empty Rule Success Custom Logic behaves like All Rules Are Met. Because the numbers follow the on-screen order, check the expression after you reorder or delete a condition.
- Empty fields and negative operators. Not equal, Not in list and Excludes (all) also match accounts where the field is empty. On a custom field, an empty value also counts as less than any value you compare it with.
- Inactive accounts are not skipped. The rebuild tests only your conditions. To keep inactive accounts out, add the condition Active Equals true.
- Only rule-made members are removed. A Process Members run or the save-time check removes a member whose Membership origin is Rule once its account stops matching; members added by hand stay. A rule-made member you edited, for example by turning Is Active off, keeps your change while the account still matches.
- Duplicates. Adding a member by hand does not check whether the account is already in the group, so adding it twice by hand gives two rows. The rules never add a row for an account that already has one.
- What updates members automatically. Saving an account re-checks that account against the rule-based groups (while the save-time setting is on). Editing a group's rules or criteria changes nothing until Process Members runs.
- Report-based membership is not supported. A group whose Dynamic Member Type is Report Data is skipped by Process Members.
- Type must match exactly. The type is compared as stored text, so a type that differs from the expected one in spelling or capitals matches no one.
Example
Your company sells through about 200 dealers. The 35 dealers in Gujarat get a regional price list.
- You create the group Gujarat dealers, type Price, Dynamic Member Type Field Filter, Rule Success Criteria Any Rule Is Met.
- On Rules, you add one condition: Billing State Equals Gujarat, and save.
- You select Process Members. A minute later the Members tab lists the 35 Gujarat accounts.
- You add one dealer from just across the border by hand on Members.
- On the price list Gujarat 2026, you set Customer Account Group to Gujarat dealers.
- A new order for one of those dealers picks Gujarat 2026 automatically when no price list is entered.
- Next month a new Gujarat dealer is created. A couple of minutes after it is saved, it appears on Members as a rule-built member, without anyone running Process Members. Your hand-added dealer stays.
Training
Practice exercise
In a sandbox:
- Create an account group Training – Mumbai, type Discount, Dynamic Member Type Field Filter, Rule Success Criteria Any Rule Is Met.
- Add a condition Billing City Equals Mumbai, save the rules, and run Process Members.
- Add one account from another city by hand on Members.
- Change the condition to Pune, save, and run Process Members again.
Expected result: after step 2 the members are your Mumbai accounts. After step 4 they are your Pune accounts plus the one account you added by hand — the Mumbai accounts are gone.
Quick reference
- The Members tab is what features read; the Rules tab only feeds Process Members.
- Saving rules changes nothing until you run Process Members; saving an account re-checks that one account against every rule-based group.
- Hand-added members survive every rebuild; rule-built members leave when their account stops matching.
- Price → price lists, Discount → discount groups, Tax → tax groups, Scheme / Exclude Scheme → trade schemes.
- A group of the wrong type is accepted on the record but matches no one.
- Field Filter needs a Rule Success Criteria; an empty criteria or no conditions means every account.
- Tick Is Active on every member you add by hand; the New form leaves it empty.
- Turn Is Active off to suspend a member without deleting it; a deleted rule-built member comes back while it still matches.
- Toggle a yes/no condition's switch before saving — untouched, it stores no value.
- Conditions are numbered top to bottom on save; custom logic follows those numbers.
Permissions
Access is granted per entity in the user's security profile: Account Group (the group), Account Group Member (the Members tab) and Account Group Rule (the Rules tab) each need read, and create, edit or delete as required. In the standard profiles, Sales, Sales Manager, Sales Executive, Service, Standard User and System Admin can work with groups, members and rules.
Process Members is a server action and is granted separately. In the standard setup only the Standard User and System Admin profiles have it; the sales profiles do not. To let sales managers rebuild groups, grant the action on their profile.
Configuration
| What | Where | Effect |
|---|---|---|
| Account Group Type values | Setup → Design Studio → Entities → Account Group → Fields, then Manage PickList Values on the Account Group Type row (data model) | Add Scheme here before creating groups for trade scheme headers, scheme conditions or scheme budgets. Only Price, Discount, Tax, Scheme and Exclude Scheme are matched by the engines |
| Rule Success Criteria values | Same place, field Rule Success Criteria | Activate All Rules Are Met to offer "every condition must hold". Add Custom Logic Is Met (exact text) to use Rule Success Custom Logic |
| Membership on save | Setup → Feature Hub → Sales → Settings, Account and item groups group, Update rule-based group membership when records are saved | On by default. While on, every created or changed account (and item, for item groups) is checked against the rule-based groups within a couple of minutes. Switch it off to change rule-based membership only through Process Members. Switching it on does not re-check existing accounts until they are saved again |
| Saved lists | The view switcher on the Account Group list | Standard views filter by type. All Scheme Account Group shows Exclude Scheme groups |
| Where the list appears | Setup → Design Studio → Apps | Standard placement is the Sales and Procurement settings lists |
| Mobile | Setup → Design Studio → Mobile Apps → Offline & Sync | Members are used offline for pricing, discounts, tax and schemes. Scope Account Group Member to Children of synced parents (parent: Account) so devices only keep memberships for their own accounts — see mobile configuration |
Common problems
The group has no members after I saved the rules
Saving rules does not build members. Select Process Members on the group, wait for the background run, and refresh the Members tab.
Process Members added every account
The group has no conditions, or its Rule Success Criteria is empty. Add conditions, choose a criteria, and run Process Members again — the run replaces the previous rule-built members.
A condition matches nothing
The field is empty on the accounts, the value is spelled differently, or the operator does not suit the field. For lookups, pick the value from the list rather than typing it.
A yes/no condition matches nothing, or matches every account
A new yes/no condition shows its switch as False but stores no value until you toggle it. Left untouched, Equals matches no account and Not equal matches every account. Edit the row, switch it on and off again (or on, for True), and save the rules before running Process Members.
My custom logic picks the wrong accounts after I changed the rules
Custom logic refers to conditions by their position, and saving the Rules tab renumbers them in on-screen order. After a reorder or a deletion, rewrite Rule Success Custom Logic to match the new positions and run Process Members again.
I get "Every condition needs a field." when I save the rules
One of the rows has no field selected. Pick a field on that row, or remove the row, and select Save again.
I get "Failed to save membership rules." or "Failed to load membership rules."
The rules were not saved or could not be read; nothing on the Rules tab changed on the server. Refresh the page and try again. If saving keeps failing, check that your security profile lets you create, edit and delete Account Group Rule records.
The price list (or discount, tax group, scheme) ignores my group
Check the group's Account Group Type: it must be Price for price lists, Discount for discount groups, Tax for tax groups and Scheme for trade schemes. Then check that the account is on the Members tab with Is Active on, and that you put the group in the right field — customer and partner (selling company) groups are separate fields.
An account I added by hand is ignored by the price list, tax group or scheme
Open the Members tab and edit the account's row. If Is Active is not ticked, tick it and save: these features only count ticked members, and the New member form leaves the box empty.
A new or changed account did not join the group
The save-time check runs a minute or two after the account is saved, so refresh the Members tab after a short wait. If it still is not there, check that the Sales setting Update rule-based group membership when records are saved is on, and that the group has conditions and a Rule Success Criteria other than Always (No Criteria). Also check that the change was to a field the group's rules test, because other edits do not queue the account. Running Process Members on the group always re-checks every account.
A member I deleted came back
The member was made by the group's rules, and the account still matches them, so the next Process Members run or save-time check added it again. Change the conditions so the account no longer matches, or keep the member and turn its Is Active off instead of deleting it.
The same account appears twice on the Members tab
It was added by hand twice, or it was matched by the rules before membership origins were recorded and then added by hand as well. Matching is not affected. To tidy up, delete one of the rows. The rules never add a row for an account that already has one.
I can't pick Scheme as the type
Scheme is not in the standard type list. An administrator adds it to the Account Group Type values (see Configuration).
I get "Selection of Rule Success Criteria is mandatory if the Dynamic Member Type is Field Filter!"
Choose a Rule Success Criteria, or clear Dynamic Member Type if you maintain the group by hand.
Common questions
Does the group update itself when accounts change?
Yes, one account at a time, while the Sales setting Update rule-based group membership when records are saved is on (the default). An account that is created, or changed in a field the rules test, is checked against the group a minute or two after it is saved. It joins when it matches, and a rule-made member leaves when it stops matching. Hand-added members change only when you change them. Changing the group's own rules or criteria does not re-check existing accounts, so run Process Members after that. Documents that were already priced or taxed keep what they got; only documents processed later see the new membership.
Can one group be used by several features?
Only by features that look for the same type. A Price group works on price lists in either the customer or the partner field, but a discount group will not recognise it. If you need the same accounts for prices and discounts, create two groups with the same rules and different types, and run Process Members on both.
Can I mix rules and hand-picked accounts?
Yes. Keep Dynamic Member Type Field Filter and add the extra accounts on Members. Neither Process Members nor the save-time check removes a member you added, so your additions stay. To exclude an account the rules pick up, refine the conditions or turn its member's Is Active off. A deleted rule-built member comes back while the account still matches.
What happens to members when I delete a group?
Deleting a group does not delete its rules or member rows; it removes the group itself. Remove the group from every price list, discount group, tax group, scheme and plan that names it first, because those records keep pointing at it. If you only want to stop using a group for a while, take it off those records instead of deleting it, so you can put it back with its members intact.
