---
schema_version: "1"
id: 182d6c4120516b21fdc9451b43eaaa509044d2edbf7eb6cd6a21777dc9b34fee
title: Automotive | Create Opportunity with Products and Preferred Seller
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_auto_crea_opp_pref_seller.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_auto_crea_opp_pref_seller.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d4af32ce9f80f29d6e4cb776f0d68c8e1606efcd51ecaa3615e94abb5bc1c9a8
description: Creates an opportunity, associated opportunity products, and opportunity preferred seller records for a customer based on inputs that define the core record identifiers and data collections for the flow, including the account, product, and preferred dealer IDs, alongside an Apex collection containing the pricebook mapping details required for opportunity creation. Captures the details of the newly generated records, including the opportunity's core attributes, the associated preferred seller record, and specific line-item data such as the opportunity ID, price book entry, product ID, quantity, and unit price.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Automotive | Create Opportunity with Products and Preferred Seller

Creates an opportunity, associated opportunity products, and opportunity preferred seller records for a customer based on inputs that define the core record identifiers and data collections for the flow, including the account, product, and preferred dealer IDs, alongside an Apex collection containing the pricebook mapping details required for opportunity creation. Captures the details of the newly generated records, including the opportunity's core attributes, the associated preferred seller record, and specific line-item data such as the opportunity ID, price book entry, product ID, quantity, and unit price.

### 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 Automotive add-on or included in Agentforce 1 Automotive Edition. Requires each user to have the Agentforce for Automotive 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="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d44119e70">User Permissions Needed</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44119e73">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d44119e70 d44119e73 ">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">Common 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;">CreaOppAndPrefSell</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;">Flow</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></tbody></table>