---
schema_version: "1"
id: 7c40a2bfa01a404c45af2d4188b02c3259b21593d3073770c8b752a2ec40f72f
title: GnrcVstTaskContextRelation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/mfg_sforce_api_objects_gnrcvsttaskcontextrelation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/mfg_sforce_api_objects_gnrcvsttaskcontextrelation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d0e46708a8fe551519c7cf17dfca8d1dca775f1e48e304b4f88d014c820102c7
description: Represents common attributes used for a visit task and a visit task context. This object is available in Manufacturing Cloud in API version 56.0 and later.
---
# GnrcVstTaskContextRelation

Represents common attributes used for a visit task and a visit task context. 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

### 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**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Autogenerated unique identifier for the visit task context relation record.

### VisitTaskContextId

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

### VisitTaskContextSequence

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The sequence in which the visit task context that’s associated with the record can be performed.

### VisitTaskId

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

## 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.

**[GnrcVstTaskContextRelationChangeEvent](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.

**[GnrcVstTaskContextRelationFeed](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.

**[GnrcVstTaskContextRelationHistory](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.

**[GnrcVstTaskContextRelationOwnerSharingRule](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.

**[GnrcVstTaskContextRelationShare](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.