---
schema_version: "1"
id: c8342348e73582dfaeb19ed6ec932eb39c0cdb77534d3b32125a1469c9152cc5
title: AiVisitTaskRcmd
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_aivisittaskrcmd.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_aivisittaskrcmd.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b5d49c3e05e079774121e952f577c70aeba0b16f71dcf153031fbc7c962048f3
description: Represents the visit task recommendations. These recommendations can be accepted or rejected by a sales manager. This object is available in API version 51.0 and later.
---
# AiVisitTaskRcmd

Represents the visit task recommendations. These recommendations can be accepted or rejected by a sales manager. This object is available in API version 51.0 and later.

## Supported Calls

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

## Fields

### AiVisitTaskRcmdRequestId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: ID of the visit task recommendation request associated with this record.

### IsLatest

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort
- **Description**: Indicates if the recommendation is the latest recommendation.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last referenced a record related to this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed this record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Name of the visit task recommendation.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the user associated with this record.

### RecommendationDecision

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
- **Description**: Status of the recommendation request.
- **Possible values**:
    - ACCEPTED—Scheduled
    - ACCEPTED\_FAILED—Failed to Schedule
    - ACCEPTED\_PENDING—Scheduling In Progress
    - RECOMMENDED—Recommended
    - REJECTED—Ignored

### RecommendationDecisionComment

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: Details about why a recommendation was accepted or rejected.

### RecommendationReason

- **Type**: textarea
- **Properties**: Create, Nillable
- **Description**: Details about why this task or KPI is recommended.

### RuleScore

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort
- **Description**: The score provided by the recommendation strategy.

### TargetRecordId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: The target record for which this recommendation is requested.

### TargetRecordObjectName

- **Type**: string
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The type of targets for which activities are recommended.

### TemplateRecordId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: The link to the record used as a template.

### TemplateRecordObjectName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: The object name of the template record.

## Associated Objects

This object has the following associated objects. Unless noted, they’re available in the same API version as this object.

- **[AiVisitTaskRcmdFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_feed_einstein.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")**: Feed are available for the object.
- **[AiVisitTaskRcmdHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_history_einstein.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")**: History is available for the object.
- **[AiVisitTaskRcmdOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_ownersharingrule_einstein.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")**: Sharing rule is available for the object.
- **[AiVisitTaskRcmdShare](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_share_einstein.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")**: Sharing is available for the object.