Maplytics
  • Maplytics
  • What's New
  • Installation
    • Install from Microsoft AppSource
      • Support for Dynamics 365
      • Support for Dataverse(CDS)
        • Access Maplytics in PowerApps
          • Multi-language Map
    • Install from Maplytics Website
      • Support for Dynamics 365
      • Support for Dataverse(CDS)
        • Access Maplytics in PowerApps
          • Multi-language Map
  • Getting Started
    • License Activation
    • Configuration
    • Add Users to Team
  • Upgrade
    • Upgrade from Microsoft AppSource
      • For Dynamics 365
      • For Dataverse
    • Upgrade from Maplytics Website
      • For Dynamics 365
      • For Dataverse
  • Prerequisites
  • Personalization
    • General
    • Advanced Settings
    • Auto-Scheduling
    • Real-Time Tracking
    • Apply to all
    • Setup Entity Map
      • General
      • Attribute Mapping
      • Tooltip Mapping
      • Category Configuration
      • Configuration
      • Advanced Settings
      • Refresh Entity Maps
    • Maplytics Security Template
    • Maplytics on Tablet / Mobile
    • Setup Dashboard Details
    • Update the Plug-in Assembly Registration
  • Features
    • Language Support
    • Maplytics Configuration (Personalization)
    • Maplytics Security Template
    • Individual Record Map
      • Steps To Add the Map To Other Entity Forms
    • Area of Service
      • Add Area of Service tab
      • Create an Area of Service field
      • View Area of Service data on a map
      • Using Map button
      • Adding Detail map on form
      • Advanced Area Of Service
      • Attribute Mapping of Service Area
      • Working of Area Of Service
    • Plot records on map
      • Detail Map
      • Plot
      • By Location
      • By Region
      • By Drawing
        • By File within By Drawing
      • By Territory
      • By Template
        • Default Template
      • Plot From File
      • Search Record
      • Lasso Tool
      • Cluster Map
        • Cluster Area
        • Spider Cluster
      • Category
        • Multiple Categorization for Multiple Entitles
        • Multiple Categorization for Single Entity
      • Set colors and shapes for pushpins
        • Set pushpins from map
          • Set pushpins for views
          • Set pushpin for categories
          • Configure pushpins in Entity map for new category
            • Category configuration for users
            • Category configuration for admins
      • Data Grid in Detail Map
        • Highlight Pushpins
        • Mass Actions
      • Tooltip Card
        • Quick Call to Action Buttons
      • Reset Map
      • Summary Card
      • Layer Menu
        • Show/Hide Labels
        • Show/Hide Territory List
      • Download map
      • Contextual Menu
    • Multi-Address Plotting
    • Point of Interest (POI) Locations
    • Proximity Search
      • Proximity by Distance
    • Overlay
      • Overlay by Territory
      • Overlay by File
      • Save Shape/Excel file in territory
        • Save Shape File
        • Save Excel File
      • Convert Overlay to Territory
    • Overlay by ArcGIS Online
    • Census data Visualization
    • Shape Operations
    • Territory Management
      • By File
      • By Proximity
      • By Region
      • By Drawing
      • By Territory
      • By Overlay
      • By ArcGIS
      • Layer Menu
      • Territory Alignment Tool
      • Create New Territory
      • Auto Territory Creation
        • Assign Territories to Record
        • Register to Windows Service
      • Draft Territories
      • Create Territory on One Click
        • By Shape File
        • By Excel File
      • Alignment of Existing Territories
        • Move To
        • Copy To
        • Edit Existing Territory
      • Shape Operations in Territory Management
    • Defining Geographies for Sales Territory with Maplytics
    • Hierarchal Territories
    • Bulk Geographies by Uploading an Excel File
    • Multiple Territories Assigned to a Record
    • Detail Map on CRM Dashboard
    • Saved Template Visualization on CRM Entity Form
    • Routing Optimization
      • Directions Card
        • Truck Route
      • Optimize Direction
      • Unified view for Route and Records
      • Default Origin and Destination
      • Snap Waypoint
      • Along the Route
      • Route Redirect and Copy Route Links
        • Redirect with Google Maps
        • Redirect with Waze
      • Redirect with Apple Maps
      • Print Route
      • Proposed and Actual Route Tracking
    • Route to a record
    • Auto Scheduling
      • Auto Scheduling Card
      • Advanced Preferences
        • User Details
        • Meeting Details
        • Existing Meetings
      • Calendar Navigation Buttons
      • Create Activities
      • Configuration Details for Auto Scheduling
      • Characteristic Based Scheduling
    • Check-In/Check-Out
      • Configuration
      • View Related Check-In/Check-Out Records
      • Check-Out
      • Default Radius
      • Geofencing
        • Enable Notes on Check-In and Check-out
        • Pending Check-In/Check-Out Requests
      • Creating Check-In/Check-Out Records
        • Adding Notes while checking-in/out
        • Creating Pending Check-In/Check-Out requests
      • Visualize Check-In/Check-Out Records on Detail Map
        • Analyze Check-In/Check-Out Records
          • Visualizing Related Records
          • Visualize Pending Check-in/out requests
      • Visualizing Related Records
        • Visualizing Related Record (Appointments/Accounts, etc.) for Check-In/Check-Out records
        • Visualizing related Check-in/Check-Out records for plotted records (Appointments, Accounts, etc.)
      • Visualize Pending Check-in/out requests
        • Approve/Reject pending Check-In/Check-Out records
    • Land Area Mapping
      • Create and Assign land areas to entity records
        • Create 1: N relationship with Geography entity
        • Attribute Mapping for Landscapes
        • Assign lands to single record
        • Assign lands to multiple records
      • Visualizing Assigned lands to the record
      • Visualizing Assigned lands to the records having no geocoordinates
    • Real-Time Tracking
      • Today's Plan
      • Location History
      • Real-Time Tracking in Mobile
    • Maplytics API
      • By Proximity
      • By Region
      • By Territory
      • By Template
      • Get Time zone
    • PowerApps Component Framework
      • Map View Control for Record
        • PCF Control in Portal/ Power Pages
      • Map Edit Control for Record
      • Map View Control for Dataset
      • Detail Map Control for Dataset
      • Address Autosuggest Control
    • Maplytics in Canvas App
    • Azure Maps - Maplytics List Control
      • Azure Map Key- Generation & Set Up
      • Plot
      • By Location
      • By Region
      • By Drawing
      • Search Record or Address
      • Category
      • List
      • Filter
      • Hover & Tooltip Card
      • POI Location
      • Contextual Menu
      • Route Optimization
    • Heat Maps
      • Select Display
    • Support for Dataverse(CDS)
      • Import Maplytics solution
      • Access Maplytics in PowerApps
    • Maplytics Dashboard
      • View Category donuts in dashboard
      • Steps to add Maplytics View to Dashboard
      • Create a route dashboard
      • Add a template in dashboard
    • Territory Assignment Rule
      • Enable Territory Assignment Rule
      • Creating Territory Assignment Rule
        • General
        • Assignment query
      • Override Existing Territory
    • Maplytics - Tablet/Mobile
      • Detail Map
        • Proximity
        • Concentric Proximity Search
        • Category Filter
        • Current Location
        • Search POI
        • Category Filter
        • Current Location
        • Set GPS Location as the current location
        • Tooltip Card
        • Contextual Menu
        • Search Record
        • Data Grid
        • Lasso Tool
        • Routing – Tablet / Mobile
        • Unified View for Route and Records
        • Save Route and Plot Saved Routes
        • Along the Route Search
        • Route Redirect and Copy Navigation Links
      • Heat Map - Tablet/Mobile
        • Summary card
        • Pie Chart in Heat Map
        • Column Chart in Heat Map
      • Dashboards - Tablet/Mobile
    • Workflows
      • Configure Geocoding Workflows for Custom Entities
      • Configure Territory Assignment Workflows for Custom Entities
      • Configure Get Time Zone Workflow
      • Configure Driving Instruction Workflow
    • Batch Processing Tool
  • Uninstallation
  • FAQ
    • License
    • General
    • Installation
    • Features
  • Popular Blogs
  • Video Library
  • MapPoint Alternative
  • Add Review
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Territory Assignment Rule
  3. Creating Territory Assignment Rule

Assignment query

PreviousGeneralNextOverride Existing Territory

Last updated 3 years ago

Was this helpful?

Here, the user can find the various options as explained below to set the conditions required within the rule:

Assign Owner: Select the user who should be assigned as the owner to the records.

Assign Territory: Select territory which should be assigned to the records. If users want to assign only the owner to the records, they can leave this blank.

Location Agnostic: This option will be visible only when a territory is selected in the Assign Territory field. It will be deselected by default and will have an effect on the assignment of the territories and owners as explained below.

Not selected - If the option of Location agnostic is not selected, the selected territory and the owner will be assigned to only those records which satisfy the query and also lie within that selected territory based on the respective latitude or longitude values of the records. For example, a territory for Staten Island has been selected and the condition in the query says, Accounts with Annual revenue greater than 100K USD, then Staten Island territory and the selected owner will be assigned to only those records which have annual revenue greater than 100K as well as they lie within Staten Island based on the latitude and longitude values of the records.

Selected: If the option of Location agnostic is selected, then the selected territory and the owner will be assigned to all the records from the selected view that satisfy the query irrespective of the latitude and longitude values of the records. For example, a territory for Staten Island has been selected and the condition in the query says, Accounts with Annual revenue greater than 100K USD, then Staten Island territory and the selected owner will be assigned to all the Accounts from the selected view which have annual revenue greater than 100K, even if they lie outside the Staten island based on the latitude and longitude values of the records.

Query Mode: There are two Query Modes:

• Simple: If query mode is selected as Simple then it will show all the system views. User can select a System view to consider the respective records.

• Advanced: If query mode is selected as Advanced, the user can put the required Fetch xml in the field as shown in the below screenshot.

To create a Fetch XML query, go to Advanced find > Select the entity and the required filters > Download Fetch XML

Priority: If multiple Territory Assignment Rules are created and while assigning territories a record satisfies more than one rules then this field will decide the priority of the rules to be assigned among the list of rules. Where 1 is the highest priority and the priority keeps decreasing as we go to a higher number. For example, let’s say three Territory Assignment rules are created with the priorities given as 1, 2 and 3. While assigning territories, if a record satisfies all the three rules, then first, it will check the priority of those three rules and 1 being the highest priority, the respective territory and the owner will be assigned to the record as per the Territory assignment rule with Priority 1.