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

# Price Schedule Action

Calculate tier-based prices and discounts from a Price Schedule.
The namespaced Apex action name is `rooms__PriceScheduleAction`.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No API callout is made. |
| Record writes | No record is inserted, updated or deleted. Calculated tier values are returned to the Flow. |
| 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 valid Price Schedule and Quantity. Supply Unit Price for discount schedules. The result is a calculation; save prices through a separate approved record-write step.

## Inputs

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

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `priceSchedule` | Price Schedule | No | The selected Price Schedule metadata record. Required for a usable calculation. |
| `quantity` | Quantity | No | Quantity evaluated against the schedule tiers. |
| `unitPrice` | Unit Price | No | Starting unit price for a discount-based schedule. |

## 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. |
| `quantity` | Quantity | The input quantity. |
| `unitPrice` | Unit Price | The input unit price. |
| `calculatedPrice` | Calculated Price | The calculated total price after applying the schedule. |
| `averageUnitPrice` | Average Unit Price | Average effective unit price. |
| `averageDiscountAmount` | Average Discount Amount | Average discount amount across effective tiers. |
| `averageDiscountPercentage` | Average Discount Percentage | Average discount percentage across effective tiers. |
| `tiers` | Price Schedule Tiers | Tier records with calculated effective values. |
| `effectiveTier` | Effective Price Schedule Tier | The tier effective for the requested quantity. |

## Configure the Flow

1. Select the Price Schedule metadata record.
2. Set Quantity and the Unit Price required by the schedule.
3. Check Success and Error Message.
4. Use Calculated Price and effective tier details in the intended later step.

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 price calculation fails.** Check the schedule configuration, quantity ranges and required Unit Price.

**Opportunity Products did not change.** This action calculates values only; it does not save them.

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.
