xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField Sales & SFACRMRewardsClaimsInventoryProcurementWarehouse ManagementField ServiceServiceSupportTelephony & MessagingFinance & AccountingPayrollExpense ManagementCommercePortalsAnalytics & ReportingData StudioMobile AppSee all products →
PLATFORM
Platform overviewApp BuilderAutomationIntegrationsSecurity & GovernanceChange ManagementDevelopers
SENSE AI
Sense AI overviewSense AssistSense ControlSense VisionAI StudioTrust & governanceIn Claude & ChatGPTUse cases
SOLUTIONS
Auto DMSConsumer Goods DMSSales Force Automation (SFA) FMCG & DistributionManufacturing & Dealer NetworksAutomotive & DealershipsPharma & HealthcareConsumer DurablesAgri-InputsBuilding MaterialsService NetworksWarehousing & 3PLFinancial AccountingERP SoftwareIndia GST ComplianceUAE VAT & e-InvoicingSaudi ZATCA & VATAll solutions →
RESOURCES
Knowledge CenterDeveloper & CLIBlogGuidesWhat is xMatix?Company facts
COMPANY
AboutCareersPartnersEventsContactAuthorsLegal
Sign in Request demo
Home/Docs/Entity Reference/Route Sequence — entity reference
REFERENCE · Last reviewed

Route Sequence — entity reference

One stored stop order (a run) for a visit route. Optimize Route Sequence, Recompute Sequences and the optional background refresh each add new runs; existing runs are never edited, so earlier runs stay available for comparison. Within each family of route, Sequence Type and Salesperson, one run is current, and Activate makes a different run current. When a visit plan is generated, the current Optimized and Mostly Followed runs give each visit its Optimized and Mostly Followed positions; a run for the plan's salesperson is preferred over the route-wide one, and a route with no current run with entries has both orders computed at that moment. Planned and Custom runs are not produced by xMatix and are not read by the planner. Runs are listed on the route's Route Sequences tab and appear in no app menu. The run's own page offers only Activate, and New fails with "Name is required" because the form has no Name field, so runs cannot be built by hand from the standard screens.

Fields

FieldLabelTypeRequiredWhat it does
AlgorithmAlgorithmMultiLineTextWhat produced the run: NearestNeighbour for the straight-line run, History-AllTime for Mostly Followed runs, or the routing service's own name for a road-network run from Optimize Route Sequence.
ComputedDateTimeComputed OnDateWhen the run was computed. The background refresh compares this date on the route's current route-wide Optimized run with later stop changes and started visits to decide whether the route is due again.
CreatedByIdCreated ByLookup → UserAccountYes
EstDurationMinsEst. Duration (min)NumberEstimated driving time. Road-network runs carry the routing service's estimate; other runs assume an average of 24 km per hour over Total Distance.
IdIdGuidYes
IsCurrentIs CurrentBooleanMarks the run used for new plans within its family (route, Sequence Type and Salesperson). A new run of the same family clears it on the previous one, and Activate moves it to the selected run. Ticking it by hand on an edit form does not clear it on the other runs, so use Activate instead.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameTextYesSet when the run is created: the route name, the sequence type, "rep" for a salesperson-specific run, and the creation date and time in UTC, separated by middle dots.
OwnerIdOwnerLookup → UserAccountYes
RecordTypeIdRecord TypeGuid, hidden
ResourceIdSalespersonLookup → ResourceFilled only on Mostly Followed runs built from one salesperson's visit history (the salesperson assigned to the plans). Empty means the run covers the whole route. Optimized runs are always route-wide. When a plan is generated, a current run for the plan's salesperson wins over the route-wide run.
SequenceTypeSequence TypePickListThe kind of order. Optimized comes from Optimize Route Sequence (road distances) or from Recompute Sequences and the background refresh (straight-line nearest neighbour). Mostly Followed comes from the order in which visits were actually started. Planned and Custom are never produced by xMatix and are not read when plans are generated, because the planned order always comes from the stops' Sequence Numbers. Values: Planned, Optimized, Mostly Followed, Custom.
StopsResequencedStops ResequencedNumberHow many positions in this order hold a different stop from the authored order (stops by Sequence Number). Zero means the run matches the authored order.
TotalDistanceKmTotal Distance (km)NumberThe length of the order. Road-network runs carry the routing service's driving distance; straight-line runs carry the sum of straight-line legs, including the leg from the route's coverage midpoint when one is set; Mostly Followed runs carry the straight-line distance between consecutive stops. Stops without an Account Location are not counted.
VisitRouteIdVisit RouteLookup → VisitRouteThe beat whose stops this run orders.

Actions

ActionLabelTypeWhat it does
ActivateRouteSequenceActivateServerAction (ActivateRouteSequence)Makes this run the current one within its (route, type, resource) family by flipping isCurrent flags only - runs are append-only and no ordering data changes. Future plans of the route are cut with this ordering; existing plans keep theirs unless ApplySequenceToPlan is used.
ActivateRouteSequenceRowActivateServerAction (ActivateRouteSequence)List-row variant of the activate flow: same behavior as ActivateRouteSequence (flips isCurrent within the run's family; append-only history is preserved), exposed on each row of the sequence list.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteHeaderDeleteDeleteDeleteHeader
DeleteRowDeleteDeleteDeleteRow
EditInLineEditEditInlineEditInLine
EditRowEditEditEditRow
NewNewNewNew