---
schema_version: "1"
id: e1c8cf520b3d75d9b96ae6952e337e2837394fbf606e36f7895b65a1ffdc320c
title: GenericVisitTaskContext
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/mfg_sforce_api_objects_genericvisittaskcontext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/mfg_sforce_api_objects_genericvisittaskcontext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b6500add3b56c3d8ae9ba574d77ff8be71dd747c5900b6544d27702d27e9044e
description: Represents the context or purpose for a generic visit task. This object is available in Manufacturing Cloud in API version 56.0 and later.
---
# GenericVisitTaskContext

Represents the context or purpose for a generic visit task. This object is available in Manufacturing Cloud in API version 56.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### ContextId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the record that’s taken as the context for the visit task. For example, if a key performance indicator is recorded for a warranty of an asset, the Asset and the Warranty records are the contexts of the visit task.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Context
- **Relationship Type**: Lookup
- **Refers To**: Account, Account\_\_c, AcctMgrTarget, AdvAccountForecastFact, AdvAcctForecastSetPartner, AdvAcctForecastSetUse, Assessment, AssessmentIndicatorDefinition, AssessmentQuestion, AssessmentQuestionAssignment, AssessmentQuestionResponse, AssessmentQuestionSet, AssessmentQuestionVersion, AssessmentTask, AssessmentTaskContentDocument, AssessmentTaskDefinition, Asset, AssetAccountParticipant, AssetContactParticipant, AssetMilestone, AssetRelationship, AssetWarranty, BusinessMilestone, BusinessProfile, Case, CommSubscriptionConsent, Contact, ContactRequest, Contract, EngagementAttendee, EngagementInteraction, EngagementTopic, GenericVisitTask, GenericVisitTaskContext, GnrcVstKeyPerformanceInd, GnrcVstTaskContextRelation, Image, InfoAuthorizationRequest, Lead, LeadLineItem, LeadPreferredSeller, ListEmail, Location, ManufacturingProgram, MfgProgramCpntFrcstFact, MfgProgramForecastFact, MfgProgramVariantFrcstFact, MultipartyInfoAuthRequest, OmniProcessAsmtQuestionVer, Opportunity, OpportunityPreferredSeller, Order, Organization, PartyConsent, PartyRelationshipGroup, PersonLifeEvent, PgmRebateTypBnftMapping, ProcessException, Product2, ProductCatalog, ProductCategory, ProductItem, ProductRelatedMaterial, ProductRequest, ProductRequestLineItem, ProductTransfer, ProgramRebateTypPayoutSrc, ProgramRebateType, ProgramRebateTypeBenefit, ProgramRebateTypeFilter, ProgramRebateTypePayout, ProgramRebateTypeProduct, ProgramRebateTypeReference, PurchaseQuantityRule, RebateClaim, RebateMemberAggregateItem, RebateMemberProductAggregate, RebatePayment, RebatePayoutAdjustment, RebateProgram, RebateProgramMember, RebateProgramMemberPayout, RebateProgramPayoutPeriod, ReceivedDocument, RecordAlert, SalesAgreement, ServiceAppointment, ServiceResource, Shipment, ShipmentItem, Solution, Supplier, TagCategory, UnitOfMeasureConversion, Vehicle, VehicleDefinition, Visit, VisitedParty, WarrantyTerm, WorkOrder, WorkOrderLineItem

### DefinitionReferenceId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The definition record associated with the runtime record. The value is null when the definition record is created.
    
    This field is a relationship field.
- **Relationship Name**: DefinitionReference
- **Relationship Type**: Lookup
- **Refers To**: GenericVisitTaskContext

### Description

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: The description of the visit task context.

### EndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The end date and time of the visit task context in a visit.

### IsDefinition

- **Type**: boolean
- **Properties**: Defaulted on create, Filter, Group, Sort
- **Description**: Indicates whether the record is a definition record.
- **Default value**: false

### IsRequired

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the visit task context associated with the record is mandatory.
- **Default value**: false

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user viewed this record.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: Autogenerated unique identifier for the visit task context record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the visit task context record owner.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### StartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The start date and time of the visit task context in a visit.

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies the status of the visit task context.
- **Default value**: Is Defined
- **Possible values**:
    - Completed
    - In Progress
    - Is Defined
    - Not Started

### StatusCode

- **Type**: picklist
- **Properties**: Defaulted on create, Filter, Group, Restricted picklist, Sort
- **Description**: Specifies the status code of the visit task context.
- **Default value**: IsDefined
- **Possible values**:
    - Completed
    - InProgress—In Progress
    - IsDefined—Is Defined
    - NotStarted—Not Started

### VisitId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The visit associated with the record.
    
    This field is a relationship field.
- **Relationship Name**: Visit
- **Relationship Type**: Lookup
- **Refers To**: Visit

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

**[GenericVisitTaskContextChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_change_event.htm):** Change events are available for the object.

**[GenericVisitTaskContextFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_feed.htm):** Feed tracking is available for the object.

**[GenericVisitTaskContextHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm):** History is available for tracked fields of the object.

**[GenericVisitTaskContextOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_ownersharingrule.htm):** Sharing rules are available for the object.

**[GenericVisitTaskContextShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_share.htm):** Sharing is available for the object.