TR Book a demo Start free
Home › Blog › A dry run

Assignment rules in a CRM: five leads, four rules, who gets which lead?

O Ohana360 Team • October 12, 2026 • 11 min read
Blog cover showing the order and targets of four lead assignment rules in Ohana360 Sales360 app settings

An assignment rule in a CRM automatically gives a newly created lead or support case to a person or a team queue based on conditions. In Ohana360 rules are set up on the Queues & Assignment tab in the App Settings of Sales360 and Service360; the system tries the rules in list order and stops at the first one that matches.

Ohana360 is a business cloud that keeps sales, service and marketing records in one database; assignment rules work on two of its objects: leads and cases. Rather than describe the feature, this post tests it. The sales team at Akın Ofis, an office furniture seller, wrote four rules. Five leads came in on the same morning: two from the web form, one referral, one from a trade fair and one by phone. The table shows how each lead passed through the four rules and who it went to; after that we open up the rule behind each decision.

Dry run: five leads, four rules, who gets which lead? Rules are tried top to bottom; the first match assigns the owner and the rest are not checked. Conditions inside a rule are joined with AND. INCOMING LEAD OWNER RULE 1 Source = Referral → Selin Arı RULE 2 Source = Event → Deniz Aksoy RULE 3 Source = Web + Company is filled RULE 4 Source = Web → Burak Er Ayşe Yıldız Web form • Mavi Lojistik not checked Istanbul Sales queue Kerem Aydın Web form • no company Burak Er user Nur Demirel Referral • Ekin Mimarlık not checked not checked not checked Selin Arı user Hakan Tekin Event • Tekin Yapı not checked not checked Deniz Aksoy user Zeynep Kılıç Phone • Kılıç Otel No owner no rule matched Had Rule 3 and Rule 4 swapped places, Ayşe Yıldız would have gone to Burak Er too: the specific rule goes first, the general one last. A lead that matches no rule stays without an owner and counts as visible to everyone even with Private sharing. The last rule should close that gap.

Where do you set up assignment rules?

Assignment rules are set up in the settings of the app concerned: lead rules on the Sales360 > App Settings > Queues & Assignment tab, case rules on the Service360 > App Settings > Queues & Assignment tab. Only admins see App Settings; a sales rep cannot write a rule, only live with its result.

Ohana360 Sales360 App Settings Queues and Assignment tab: Istanbul Sales queue, five ordered lead assignment rules and the open rule conditions
Akın Ofis's Sales360 settings: the queue at the top, five ordered rules below, and on the right the two conditions and the target of Rule 3.

The tab has two parts. The Queues list sits at the top, the Assignment Rules list for the object below it. Each rule row shows an Active checkbox, the rule name, the number of conditions and the target, for example "2 conditions → Istanbul Sales (queue)". A rule is defined in the window that opens with + New Rule by four things:

Conditions inside a rule are joined with AND; to say "Source Web OR Referral" you write two separate rules. If a condition that needs a value has an empty value box, the Save button does nothing.

Why does rule order matter?

Rule order matters because Ohana360 tries active rules from top to bottom and stops at the first rule whose conditions hold; a second rule that would also fit the record is never evaluated. Each of the five leads in the table is explained by that single principle.

Rules 3 and 4 show why order decides the outcome. Rule 4 only says "Source equals Web" and fits every web lead. Placed at the top of the list it would have sent Ayşe Yıldız to Burak Er as well, and the corporate queue would never have received a record. The rule of thumb: narrow conditions first, broad conditions last.

There is a practical limit here. A new rule is always added to the end of the list and there is no button to move rules up or down. If you later need to slot a rule in between, two options remain: rewrite the conditions and targets of existing rules with Edit, or delete the rules below and recreate them in the right order. With a handful of rules this takes a minute, which is why designing the order on paper first is the cheapest approach.

What happens to a lead with no owner?

A lead that matches no rule is left without an owner, and in Ohana360 a record without an owner counts as everyone's own record; even with Private sharing on leads and cases, every user in the org sees it. That is why Zeynep Kılıç's record shows up in every list on the team but is nobody's responsibility.

There are two reasons. The lead and case forms have no Owner field, so the owner is always decided by a rule; the rep who creates the phone lead cannot type their own name into the form. The fix is a catch-all rule at the very end of the list that fits every new record. A rule without conditions cannot be saved, at least one condition is needed; the form defaults Status to New and the web form always creates leads as New, so the condition "Status equals New" does the job. Akın Ofis added this as a fifth rule and made the Istanbul Sales queue its target.

Whose lists a record appears in depends on sharing. When sharing on leads and cases is Private, the record is seen by its owner, by people above the owner in the role hierarchy, by the queue's members if the owner is a queue, and by admins. Profiles and sharing are covered in the user roles and permissions guide.

What is a queue, and when do you assign to one instead of a person?

A queue is a shared pool that can own records: it is a name plus a member list, and every member sees and edits a record assigned to the queue as their own. Assigning to a queue instead of a person is for cases where you know which team a record should go to but not which person.

A queue is created with + New Queue: you type a name and pick people from the members list. A second queue with the same name cannot be created. If a queue is deleted, the owner of records assigned to it does not change; the records keep a name with no members as their owner, and former members can no longer see them as their own. Move the records to another owner before you delete a queue.

How do you set up assignment rules for cases?

Case rules are set up on the Service360 > App Settings > Queues & Assignment tab with the same window as lead rules; the condition fields are Subject, Type, Priority, Status, Case Origin and Description plus any custom fields added to cases. The Akın Ofis support team wrote three rules:

OrderRuleConditionTarget
1Critical casesPriority equals CriticalSenior Support (queue)
2ComplaintsType equals ComplaintEce Kurt
3Web form casesCase Origin is emptySupport Desk (queue)

The third rule relies on a detail. A case from the Web-to-Case form is created with Status New and Priority Medium, and its Case Origin and Type fields are empty. A "Case Origin equals Web" condition does not catch these cases; "Case Origin is empty" does. Case Origin is required on the case form in the app, so this condition does not affect cases opened by hand. Web form cases always come in at Medium priority, so Rule 1 never fits them; priority is raised by hand once the team has read the case.

If priority is later raised to Critical the rule does not run again, because assignment only happens when a record is created. To hand a case to the senior team when its status moves to Escalated or its priority goes up, you use the Assign Owner action of a record-triggered flow. SLA targets and the full complaint process are covered in the customer complaint tracking guide.

Which records does an assignment rule run on?

An assignment rule only runs when a new lead or case is created: the new record form in the app, web forms and the REST API are the entry points. CSV import, cases opened from the customer portal and updates to an existing record do not run the rule.

Which entry point runs an assignment rule? Six ways in A rule only runs when a record is created. The same rule is evaluated with identical logic in the app and on the server. ENTRY POINT LEAD CASE NOTE New record form web app and mobile runs runs The form has no Owner field; the rule decides the owner. Web-to-Lead / Web-to-Case the form on your site runs runs Leads arrive with Source Web; cases with an empty Case Origin, Priority Medium. REST API POST from another system runs runs An owner sent in the request is replaced by the rule's target if a rule matches. CSV import Setup import wizard does not run does not run Records arrive without an owner; assign them afterwards by flow or by hand. Customer portal case opened by a portal user n/a does not run Origin is written as Portal and the owner stays empty. Updating a record status or priority change does not run does not run For reassignment use the Assign Owner action in a flow. Before you rely on the rules, create one test record through each entry point and check its owner; set up a separate path for CSV and portal records. If a queue is deleted, the owner of records assigned to it does not change; move those records to another owner before deleting the queue.

Two entry points need extra care. On a record created through the REST API, even if the request sends an owner, the owner is replaced by the rule's target when a rule matches; to keep the external system's own assignment, send those records with values that match no rule. Leads imported from a CSV file arrive without an owner; after a large import, distribute them with a flow or by hand from a list view filtered on Status. The order of a data migration is covered in the CRM migration guide.

How do you notify the person a record was assigned to?

An assignment rule sends no notification; to tell the new owner you add a Push Notification action to a record-triggered flow and pick the record owner as the target. Among the ready-made templates under Setup > Flows, "Web lead → call within a day" sets this up: when a lead with Source Web is created it creates a call task due tomorrow and sends a push to the owner.

Reminder and task flows are covered in the automated follow-up reminders guide, and turning an assigned lead into an account, contact and opportunity in the lead conversion guide.

Not included: what assignment rules do not do

What should you check before turning the rules on?

Testing every assignment rule with at least one trial record before you rely on it saves the first week's leads from going to the wrong person. The six-point list Akın Ofis used:

  1. Lay out the order on paper. Write the rules from narrow conditions to broad ones, then enter them in the app in that order.
  2. Keep the last rule for the gap. A catch-all rule with the condition "Status equals New" leaves no record without an owner.
  3. Create one trial record per entry point. Create one through the form, the web form and the API if you use it, and check the result from the account of a queue member and of the target user.
  4. Pick picklist values from the list. The condition value is compared exactly with the value on the record; on picklist fields choose the value from the window's dropdown instead of typing it.
  5. Wire up notifications with a flow. Set up a push to the owner for records assigned to a person, and a notification to the team lead for records assigned to a queue.
  6. Keep members and leavers up to date. When someone leaves the team, change the rule that targets them and their queue membership on the same day.

Assignment rules work with the same window for leads in Sales360 and for cases in Service360; the logic of rule conditions is the same as the condition lines described in the validation rules guide.

Read next