---
schema_version: "1"
id: 44120da744362cb65fb5ffeb56cc00b189e4e9275cba0ce34de41f9ae2bb5ea0
title: Retail Execution Visit Assistant | Get Retail Execution Orders By Visit
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_orders_by_visit.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_get_retail_execution_orders_by_visit.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e9c54a1b6000eac9e915eaf3bfc0927d560f77e410e2d0238b6dec9dea94caad
description: Gets order information, including order header details and corresponding detailed line-item (order item) data for each order. The action gets ready or released preorders, deliveries, and invoices data for the visit, optionally within a date range.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Retail Execution Visit Assistant | Get Retail Execution Orders By Visit

Gets order information, including order header details and corresponding detailed line-item (order item) data for each order. The action gets ready or released preorders, deliveries, and invoices data for the visit, optionally within a date range.

### 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="d199881e70">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d199881e70 ">To use Retail Execution</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d199881e70 ">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="d199881e70 ">To use Retail Execution Agentforce action</td>

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

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d199881e70 ">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;">GetReOrdersByVisit</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 Orders By Visit</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: Last Visit Summary](https://help.salesforce.com/s/articleView?id=ai.retail_agentforce_last_visit_summary_topic.htm&language=en_US)