Loading
Ongoing maintenance for Salesforce HelpRead More
PHP Vulnerability Monitoring Read More
Media Cloud
Configure a Procedure Plan for Media Plan Pricing

Configure a Procedure Plan for Media Plan Pricing

To apply custom pricing logic and automate record updates in Media Cloud, create a procedure plan. Incorporate Pre-Apex and Post-Apex hooks alongside your core pricing procedures to apply targeted discounts and fees smoothly. Use this automated workflow to eliminate manual data entry and ensure accurate, consistent pricing execution across your media plans.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited editions with Media Cloud- Advanced
User Permissions Needed
To create procedure plans:

Procedure Plan Access

Salesforce Pricing Design Time User

Before you begin:

  • Turn on Procedure Plan Orchestration for Pricing in Revenue Cloud Settings.

  • Turn on Exclude Default and Sales Transaction Type Pricing Procedures in Revenue Cloud Settings.
  • Verify that your Apex classes implement the revenue signaling framework.

For information on procedure plans, see Build and Manage Your Procedure Execution.

Create a Procedure Plan

Create a procedure plan so that Salesforce applies the pre-hook discount and ad server fee.

  1. From Setup, in the Quick Find box, enter Procedure Plans, and then select Procedure Plan Definitions.
  2. Click New.
  3. Enter a title and developer name for the procedure plan.
  4. For Process Type, select Revenue Cloud.
  5. For Primary Object, select Quote.
  6. Select the context definition that you configured for the default procedure for the media plan.
  7. Save the procedure plan.

Create another procedure plan with Order as the primary object.

Configure Sections and Steps

Configure your procedure plan to apply custom pricing logic such as a pre-hook discount and an ad server fee. Add a Pre-Apex Hook to evaluate conditions such as the quote name, and then include your existing pricing procedure. Use a Post-Apex Hook to update the description field on the quote line item automatically.

  1. Open the procedure plan that you created.
  2. Add an Apex Pre Hook section.
  3. Select the Apex class that implements the revenue signaling framework.
  4. Define a condition for when the hook runs.
    For example, Quote Name Equals Run Apex Pre Hook.
  5. Configure the hook logic.
    For example, apply a 2% discount and a $5 ad server fee.
  6. Add a Pricing Procedure section.
  7. Select the pricing procedure to include in the plan.
  8. Add a Apex Post Hook section.
  9. Select the Apex class for post-processing.
  10. Configure the hook logic.
    For example, update the description field on the quote line item.
  11. Save and activate the procedure plan.

Verify the Configuration

To verify your custom pricing logic, run pricing on your media plan and review the calculated adjustments.

  1. Open a media plan with quote line items.
  2. Run pricing on the media plan.
  3. Verify these details on the quote line items.
    • Salesforce applied the pre-hook discount and ad server fee.
    • The net unit price reflects the calculated adjustments.
    • The post-hook description appears on the quote line item.
 
Loading
Salesforce Help | Article