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 Plan — entity reference
REFERENCE · Last reviewed

Visit Plan — entity reference

One executive's field day: a dated plan holding one visit per outlet, assigned to the resource who will walk it. Plans are generated automatically from a visit route's schedule (status Planned), created by hand, created from the Route Planner page, or created by a van run. On first save, visits are built from the plan's sources: one per approved stop of the Visit Route, one per member of the Account Group, and, when Visit Purpose is Order Delivery, one per undelivered delivery order of the plan's branch and partner account that is not linked to a visit yet. Saving a plan with a route copies the route's Partner Account, Visit Purpose and Visit Task Template onto it and fills an empty assignee from the route. Changing the route, account group, purpose or dates later adds visits again without removing existing ones. Only the assigned resource may start, pause or end the plan. Setting Status to Completed cancels every visit not already Completed, Cancelled or Rescheduled. An open plan older than the Sales setting 'Auto-cancel Visit Plan after' (72 hours by default) is set to Lapsed and its open visits are cancelled.

Fields

FieldLabelTypeRequiredWhat it does
AcceptanceStatusAcceptance StatusPickListDescriptive value (Accept, Decline, Not Sure); nothing in plan processing reads it. Values: Accept, Decline, Not Sure.
AccountGroupIdAccount GroupLookup → AccountGroupWhen set, one visit is created for every member of the account group (member active flags are not checked). Changing it on a saved plan adds a further set of visits. Not on the seeded forms.
ActualPlanEndDateActual Plan End DateDateAndTimeWhen the executive pressed End plan, or when the stale-plan cleanup lapsed the plan if it was still empty.
ActualPlanStartDateActual Plan Start DateDateAndTimeWhen the executive pressed Start plan. Only the assigned resource can set it.
AssignedToResourceIdAssigned To ResourceLookup → ResourceThe executive who will walk the day, and the only person allowed to execute it. Filled when empty: from the route's resource, or the holder of the route's position on a seat-owned route; on a plan without a route, from the creating user's resource. Users linked to a resource only see plans assigned to them or their hierarchy, plus unassigned plans.
BranchIdBranchLookup → BranchThe branch the day belongs to; the picker shows only branches of the chosen partner account. Generated plans take the assigned resource's default branch. Order Delivery plans only pick up delivery orders of this branch.
CityCityPickListValues: New Delhi.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
EndLocationEnd LocationGeoLocationFixed end point for Optimise Route. Not on the seeded forms.
ExecutedByResourceIdExecuted By ResourceLookup → ResourceWho actually ran the day. Van-run plans set it to the run's executive. When no assignee is set, this resource is the one allowed to execute the plan. Changing it counts as execution, so it is refused for a user linked to a resource other than the assignee.
IdIdGuidYes
IncludePendingDeliveryCheckoutsInclude Pending Delivery CheckoutsBooleanStored only; nothing in plan processing reads it.
IncludePendingDeliveryOrdersInclude Pending Delivery OrdersBooleanYesStored only; delivery visits are driven by Visit Purpose Order Delivery, not by this switch.
ItemGroupIdItem GroupLookup → ItemGroup
ModeofTransportMode of TransportPickListValues: Two Wheeler.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameTextThe day's name, required on the form. Generated plans are named after the route and the date, for example 'North Market - 14 Oct 2026'. Automatic numbering is available through the Visit Plan document name setting, which is delivered switched off.
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountThe distributor or company the day serves. Overwritten with the route's partner account whenever the plan is saved with a Visit Route. Used together with Branch to pick delivery orders for Order Delivery plans.
PlanEndDatePlan End DateDateAndTimeWhen the day is planned to end. Generated plans use the latest end time among the route's approved stops. The stale-plan cleanup measures from this date, or from Plan Start Date when it is empty.
PlanNamePlanNameLongMultiLineTextA copy of the plan name written by automatic generation.
PlanStartDatePlan Start DateDateAndTimeThe planned day. Becomes the planned date of every visit created for the plan. Generated plans start at the route's start time on the day, or midnight.
PlanTypePlan TypePickListOrder Taking (default), Van Sales or Field Service. Set by van runs and the Route Planner; not on the seeded forms. On mobile, Van Sales and Field Service plans show the Van Run card. Starting the plan is not blocked until the van stock is taken in. Values: Order Taking, Van Sales, Field Service.
PostalCodePostal CodeText
RecordTypeIdRecord TypeGuid, hidden
RemarksRemarksText
RouteMethodRoute MethodPickListDescriptive value. Route Planner and van-run plans store Manual, which is not one of the picklist values; nothing in plan processing reads it. Values: By Map Selection, By Pincode, By Account Group.
StartLocationStart LocationGeoLocationFixed starting point for Optimise Route when no current location is supplied. Not on the seeded forms.
StateStatePickList
StatusStatusPickListThe plan's lifecycle. Hand-created plans start as Draft. Generated, Route Planner and van-run plans are saved as Planned; Start plan writes In Progress, Pause writes Paused, End plan writes Completed and the stale-plan cleanup writes Lapsed — several of these values are written by the system without being picklist values. Only the assigned resource can move a plan into In Progress, Started, Paused, Completed or Executed. Moving to Completed cancels every visit that is not Completed, Cancelled or Rescheduled; moving to Cancelled leaves visits unchanged. Values: Draft, Assigned, Started, Executed, Lapsed, Cancelled, Completed.
TotalVisitTotal VisitCalculated (calculated)Number of visits on the plan.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes
VisitComplianceVisit ComplianceCalculated (calculated)Percentage of the plan's visits whose status is Completed: completed visits times 100 divided by all visits, 0 when the plan has no visits.
VisitPurposeVisit PurposePickListWhy the outlets are visited. Copied from the route when the plan has one. The value Order Delivery adds one visit per undelivered, unlinked delivery order of the plan's branch and partner account that is unscheduled or scheduled on the plan's day. Values: Order Capture, Courtesy Visit, Order Delivery, Field Service, Product Demo, Service Touch, Payment Collection.
VisitRouteGroupIdVisit Route GroupLookup → VisitRouteGroupThe route group of the plan's route, copied by automatic generation.
VisitRouteIdVisit RouteLookup → VisitRouteThe visit route (beat) the plan comes from. On first save one visit is created per approved stop (stops with no status also count; Proposed stops are skipped), carrying the stop's times, position and purpose. Changing it on a saved plan adds visits again and copies the route's partner account, purpose and task template.
VisitTaskTemplateIdVisit Task TemplateLookup → VisitTaskTemplateThe task template stamped on every visit the plan creates; tasks and activities are created by the apps when a visit is first opened. Copied from the route when the plan has one.

Actions

ActionLabelTypeWhat it does
ApplySequenceToPlanApply Sequence To PlanServerAction (ApplySequenceToPlan), inactiveStamps this plan's visits with a stored RouteSequence's ordering as the new PLANNED order: rewrites sequenceNumber and plannedSequence, compacted to 1..n over the plan's visits, with visits whose stop is not in the sequence trailing in their current order. Args: routeSequenceId (required guid). Returns the count of visits re-sequenced.
BulkDeleteDeleteDeleteDelete the selected records.
ClearRouteClear RouteUIAction, inactiveClear Route
CloneCloneServerAction (Clone), inactiveCreate a copy of this record
ConfigureRouteConfigure RouteUIAction, inactiveConfigure Route
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete in a list page
EditEditEditEdit
EditInLineEditEditInlineEdit in page.
EditInListEditEditEdit In List Header
EditListHeaderEditEditInlineEditListHeader
GetAllVisitsView All VisitsServerAction (GetAllVisits)Read-only fetch of every Visit belonging to this plan, each returned with its account and task template embedded - the data source behind the plan's all-visits view. Modifies nothing.
NewNewNewNew
OptimiseRouteOptimise RouteServerAction (OptimizeRoute)Optimise Route

Lookup filters

FilterLookup fieldNotes
Branch For Partner AccountBranchId