---
schema_version: "1"
id: 27fc8013b29dd7640ca739c33366b77f4ae1984a7417f6c5370d9cbf16251bc3
title: Retail Execution Visit Assistant | Get Retail Execution Visits By Account
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_get_retail_execution_visits_by_acc.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_get_retail_execution_visits_by_acc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f91578f0862ce8e814b9c02370d639c6946b48424d628573537ce7c394c105e6
description: "Gets completed visits for the account based on the preconfigured visit types in Retail Execution. The action supports two scope modes: returning only the most recent completed visit or returning all completed visits within a specified date range. Each retrieved visit includes associated details of store audits, product surveys, and asset audits."
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Retail Execution Visit Assistant | Get Retail Execution Visits By Account

Gets completed visits for the account based on the preconfigured visit types in Retail Execution. The action supports two scope modes: returning only the most recent completed visit or returning all completed visits within a specified date range. Each retrieved visit includes associated details of store audits, product surveys, and asset audits.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with the Agentforce for Consumer Goods add-on or included in Agentforce 1 Consumer Goods Edition. Requires each user to have the Agentforce for Consumer Goods add-on to access the action.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d77894e70">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d77894e70 ">To use Retail Execution</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77894e70 ">Assign one of the Retail Execution user permissions. See <a href="https://help.salesforce.com/s/articleView?id=ind.cg_permsets_re_from_summer24.htm&amp;type=5&amp;language=en_US" target="_blank">Permission Sets From Summer ’24</a></td>

        </tr>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d77894e70 ">To use Retail Execution Agentforce action</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77894e70 ">Access CGCloud AI Assistive Agent</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d77894e70 ">For additional permissions, see <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">User Access for Standard Agent Actions</a>.</td>

        </tr>
      </tbody>
    </table>

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">GetReVisitsByAccount</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Standard Action</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td><td class="slds-cell-wrap" style="vertical-align:top;">Get Retail Execution Visits By Account</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Invocable Action</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">No</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Required Setup</td><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=ind.retail_org_preference_agentforce.htm&amp;language=en_US" target="_blank">Agentforce Setup in Retail Execution</a></td></tr></tbody></table>

#### See Also

- [Agent Topic: Account Compliance](https://help.salesforce.com/s/articleView?id=ai.retail_agentforce_acc_compliance_topic.htm&language=en_US)
- [Agent Topic: Last Visit Summary](https://help.salesforce.com/s/articleView?id=ai.retail_agentforce_last_visit_summary_topic.htm&language=en_US)
- [Agent Topic: Product Upsell](https://help.salesforce.com/s/articleView?id=ai.retail_agentforce_product_upsell_topic.htm&language=en_US)