---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "Product Bundle Action Flow Reference"
description: "Inputs, outputs, transaction effects and troubleshooting for Product Bundle Action in Salesforce Flow."
contentType: "reference"
audience: "admin,developer"
---

# Product Bundle Action

Add selected product-bundle options to an Opportunity.
The namespaced Apex action name is `rooms__ProductBundleAction`.

**Reference status: Limited.** Review the supported behavior and limitations below.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No API callout is made. |
| Record writes | Inserts Opportunity Product records when Create Opportunity Products is enabled. |
| Background work | No queued work is started. |
| Platform event | The action does not directly publish a platform event. |
| Email | The action does not send email. |

Supply a Configuration and selected or edited option records. Edited rows take precedence for the same option ID. The action checks required-option and pricing rules before creating lines.

Clone Configuration is exposed, but this action does not create a cloned Configuration. Product Options output is not populated by this action. A successful result with Create Opportunity Products disabled does not confirm that any record was created.

## Inputs

Required describes the Flow input setting. Additional conditions are stated in the guidance.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `opportunityId` | Opportunity ID | No | The Opportunity to receive the lines. |
| `configurationId` | Configuration ID | No | The selected Configuration record. Required for a usable request. |
| `selectedRows` | Selected Rows | No | Selected Product Option records. |
| `editedRows` | Edited Rows | No | Edited Product Option records. Values take precedence for matching selected option IDs. |
| `createOpportunityProducts` | Create Opportunity Products | No | Defaults to `false`. Set `true` to create Opportunity Products. |
| `cloneConfiguration` | Clone Configuration (Bool) | No | Declared default: `false`. This action does not clone a Configuration. |
| `fieldMap` | Field Map (CSV OptionField=OpportunityProductField | No | Optional comma-separated `OpportunityProductField=OptionField` assignments. The destination line field is on the left. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `success` | Success | Whether the action reported success. Check this value before continuing. |
| `message` | Error Message | Result details or an error. Read this value with Success. |
| `opportunityProducts` | Opportunity Products | The created Opportunity Product records when creation succeeds. |
| `productOptions` | Product Options | Retained output. This action does not populate it. |

## Configure the Flow

1. Select the Configuration, Opportunity and its Price Book.
2. Supply Selected Rows or Edited Rows. Include all required bundle options.
3. Enable Create Opportunity Products when line creation is intended.
4. Leave Clone Configuration disabled. Verify any custom Field Map separately.
5. Check Success and Error Message and inspect returned Opportunity Products.

Confirm the Flow user's action access and the required access to the referenced records.
Review the configured Salesforce API connection user's access when the action makes a callout.
Connect the action's Fault path.

## Troubleshooting

**The Configuration is missing.** Supply its record ID.

**Not all options are accepted.** Check the required-option rule, each option's Product, matching Price Book entry and price.

**No Configuration clone or Product Options result appears.** Those exposed controls do not provide those results in this action.

**A retry creates duplicate lines.** Check existing Opportunity Products before repeating creation.

Confirm that the action and its fields exist in the installed package.
See the [Flow action index](/content/build/flows/index.md) for related actions and transaction guidance.
