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/Visit Route — entity reference
REFERENCE · Last reviewed

Visit Route — entity reference

A beat: a named, reusable field journey owned by one executive (Resource) or by a seat (Position), whose outlets are its Visit Route Stops and whose weekly schedule decides when visit plans are generated. When automatic generation is on, a background job creates one plan per route per scheduled day for an active route inside its effective dates that has at least one approved stop, unless any plan already exists for that route and date. Each plan copies the route's Visit Route Group, Partner Account, Visit Purpose and Visit Task Template and is assigned to the Resource, or to the seat's holder on that date. The route also holds its stored stop orders (route sequences) used by optimization and the agenda.

Fields

FieldLabelTypeRequiredWhat it does
AccountGroupIdAccount GroupLookup → AccountGroupStored on the route only. Not copied to plans and not used by plan generation or optimization.
CoverageMidpointDistanceCoverage Midpoint Distance (KM)NumberNot used by plan generation, optimization or territory planning; defaults to 0.
CoverageMidpointLocationCoverage Midpoint LocationGeoLocationThe centre point of the route's outlets, written by territory planning. Optimization starts its order from here when it is set.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
DayNumbersDay NumbersTextComma-separated weekdays the route runs, 1 = Monday to 7 = Sunday, without spaces. Kept in step with the seven day switches: saving Day Numbers resets the switches to match, and changing a switch rewrites Day Numbers.
EffectiveFromEffective FromDateAndTimeThe first date the route may generate plans; empty means no start limit. With the rolling four-week numbering mode it also anchors week 1.
EffectiveToEffective ToDateAndTimeThe last date the route may generate plans; empty means no end date.
FridayAvailableFriday AvailableBooleanWhether the route runs on Fridays. Kept in step with Day Numbers.
IdIdGuidYes
IsActiveActiveBooleanWhether the route can generate visit plans. On by default. Switching it off stops generation from the next run and leaves past and already-generated plans untouched.
ItemGroupIdItem GroupLookup → ItemGroupStored on the route only. Not copied to plans and not used by plan generation or optimization.
ModifiedByIdModified ByLookup → UserAccountYes
MondayAvailableMonday AvailableBooleanWhether the route runs on Mondays. The day switches decide plan generation and are kept in step with Day Numbers.
NameNameTextThe beat's name, required on the form and shown in lists and on the Route Optimization page.
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountGroupIdPartner Account GroupLookup → AccountGroupStored on the route only. Not copied to plans and not used by plan generation or optimization.
PartnerAccountIdPartner AccountLookup → AccountThe distributor or channel partner the beat serves. Only active partner accounts can be picked. Copied onto every generated plan; Outlet Transfer moves outlets only between beats with the same partner.
PositionIdPositionLookup → PositionThe seat that owns the route. When set, generated plans go to whoever holds the seat on the plan date (an unassigned plan when the seat is vacant), and Resource is kept in step with the holder.
RecordTypeIdRecord TypeGuid, hidden
RemarksRemarksTextFree-text notes about the route. Not on the delivered forms.
ResourceIdResourceLookup → ResourceThe executive who owns the route; generated plans are assigned to them. Only active resources can be picked. On a seat-owned route (Position set) it is restamped automatically to the seat's current holder, so a manual edit there does not last.
RouteNameRoute NameLongMultiLineTextAn alternative name used as the name of generated visit plans when set. Not on the delivered forms.
RoutingPriorityRouting PriorityPickListShortest Time or Shortest Distance. Recorded only; route optimization does not read it. Values: Shortest Distance, Shortest Time.
SaturdayAvailableSaturday AvailableBooleanWhether the route runs on Saturdays. Kept in step with Day Numbers.
StartTimeStart TimeTimeOnlyThe time of day generated plans start. Without it a generated plan starts at midnight. Not on the delivered forms.
SundayAvailableSunday AvailableBooleanWhether the route runs on Sundays. Kept in step with Day Numbers.
ThursdayAvailableThursday AvailableBooleanWhether the route runs on Thursdays. Kept in step with Day Numbers.
TuesdayAvailableTuesday AvailableBooleanWhether the route runs on Tuesdays. Kept in step with Day Numbers.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes
VisitPurposeVisit PurposePickListWhy the beat is run. Copied onto every generated plan; each visit takes its purpose from its stop. Values: Service Touch, Order Capture, Order Delivery, Field Service, Product Demo, Courtesy Visit, Payment Collection.
VisitRouteGroupIdVisit Route GroupLookup → VisitRouteGroupThe group of beats this route belongs to. Copied onto every generated plan; territory planning creates and retires routes per group.
VisitTaskTemplateIdVisit Task TemplateLookup → VisitTaskTemplateThe work expected at each outlet. Copied onto every generated plan and from there onto every visit. A template recorded on an individual stop is not used.
WednesdayAvailableWednesday AvailableBooleanWhether the route runs on Wednesdays. Kept in step with Day Numbers.
WeekNumbersWeek NumbersTextComma-separated weeks of the month the route runs, for example 1,3. Empty means every week. How a date's week is counted follows the organization's Visit Route week numbering setting (day of month by default).

Actions

ActionLabelTypeWhat it does
AssignPositionsFromOwnersAssign Positions from OwnersServerAction (AssignPositionsFromOwners)Moves the selected routes to seat ownership: reuses each route executive's open seat or creates one with a Resource Position record, then sets Position. Routes already on a seat or with no Resource are skipped. Not placed on the delivered screens.
BulkDeleteDeleteDeleteDelete
CloneCloneServerAction (Clone)Copies the route's own fields into a new route. Stops are not copied, and the copy keeps the original's Active setting.
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete
EditEditEditEdit
EditInLineEditEditInlineEdit
EditInListEditEditInlineEdit In List Header
EditPopupEditEditEdit
NewNewNewNew
OptimizeRouteSequenceOptimize Route SequenceServerAction (OptimizeRouteSequence)Sends the route's approved stops that have their own Account Location to the road-network routing service (one paid request) and stores the returned order as the route's current Optimized sequence. Stops without coordinates trail in authored order. Refused without sending a request when optimization is not configured or no approved stop has coordinates. Existing plans are not changed.
RecomputeRouteSequencesRecompute SequencesServerAction (RecomputeRouteSequences)Stores a new straight-line nearest-neighbour Optimized sequence and new Mostly Followed sequences from visit history, for the route and per executive, at no cost. The new Optimized run replaces a road-optimized one as current; re-activate that run to keep it.

Validations

ValidationApplies toError messageNotes
Effective From Field ValidationEffectiveFrom, Error, inactiveEffective From date cannot be in the past.Effective From date cannot be in the past.

Lookup filters

FilterLookup fieldNotes
Partner AccountPartnerAccountId
ActiveResourceResourceId