---
schema_version: "1"
id: f66844c878b76ea0abea5eaa2e2450f12dcc0357e79a0060bfdc06424492ba79
title: AiVisitTaskRcmdRequest
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_aivisittaskrcmdrequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_aivisittaskrcmdrequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2133f99040e664da1f61f9cbb82d13e7daa590034af8f19b93c1c1c195ab0c92
description: Represents the request parameters and responses of visit task recommendations. This object is available in API version 51.0 and later.
---
# AiVisitTaskRcmdRequest

Represents the request parameters and responses of visit task recommendations. 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

### AcceptedCount

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: Number of recommendations created by this recommendation request that are accepted.

### ErrorMessage

- **Type**: textarea
- **Properties**: Create, Nillable
- **Description**: Details of why the visit task recommendations weren't generated.

### 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**: Unique identification of the task.

### OwnerId

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

### RecommendationCount

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: Number of recommendations created for the request.

### RecommendationResponse

- **Type**: textarea
- **Properties**: Create, Nillable
- **Description**: JSON data containing the recommendations.

### RecommendationStrategyName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: Name of the visit recommendation strategy.

### RejectedCount

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort
- **Description**: Number of recommendations created by this recommendation request that are rejected.

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
- **Description**: Status of the visit task recommendation request.
- **Default value**: QUEUED
- **Possible values**:
    - COMPLETED
    - FAILED
    - IN\_PROGRESS
    - QUEUED

### TargetRecordList

- **Type**: textarea
- **Properties**: Create
- **Description**: List of targets for which recommendations are required.

### TargetRecordObjectName

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort
- **Description**: The type of targets for which activities are recommended.
- **Possible values**:
    - AiVisitRecommendation
    - Visit

## Associated Objects

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

- **[AiVisitTaskRcmdRequestFeed](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 is available for the object.
- **[AiVisitTaskRcmdRequestHistory](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.
- **[AiVisitTaskRcmdRequestOwnerSharingRule](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.
- **[AiVisitTaskRcmdRequestShare](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.