web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

New calculation Price BC SAAS

(6) ShareShare
ReportReport
Posted on by 36

Hello everyone,

I’m working with the new pricing method in Business Central SAAS, and I would like to add an additional criterion so the system can select the correct price based on custom logic.

I have a specific Boolean field on the Sales Line, and I want the price to be selected depending on the value of this field. My challenge is understanding how to pass this custom value (coming from the Sales Line) into the pricing engine so that it can be used when filtering the Price List Lines.

Has anyone implemented something similar or can guide me on how to extend the new pricing engine in AL to include custom criteria?

Thank you in advance :) 

I have the same question (1)
  • Verified answer
    OussamaSabbouh Profile Picture
    12,808 Super User 2026 Season 1 on at
    Hello,
     
    To add your own custom criterion to the new BC pricing engine:
     
    1. Add your Boolean field to Price List Line and Price Calculation Buffer.
     
     
    2. Copy the value from Sales Line → Buffer using OnAfterFillBuffer.
     
     
    3. Filter price list lines using your Boolean in OnAfterSetFilters.
     
     
     
    That’s it—the pricing engine will automatically pick only the lines that match your flag.
     
    Regards,
    Oussama Sabbouh
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at
  • Suggested answer
    Gregory Mavrogeorgis Profile Picture
    992 Super User 2026 Season 1 on at
    Hi,

    Yes — you can extend the new Business Central pricing engine to include your own custom criteria, including a Boolean on the Sales Line. The key is to pass this value into the Price Calculation Buffer and then use it when the system filters Price List Lines.
    Here’s the general approach:
    1. Add your Boolean field to all relevant tables
    You already have it on the Sales Line, but you’ll also need to add the same field to:
    • Price List Line (so the price list can indicate when it applies)
    • Price Calculation Buffer (because this is what the pricing engine actually uses)
    2. Copy the value from the Sales Line into the buffer
    Subscribe to one of the events that prepares the pricing buffer and simply copy your Boolean:

    3. Apply your custom filter inside the pricing engine
    Once the buffer value is available, you can extend the filtering logic for the price list lines:
    4. Result
    Now the pricing engine will automatically consider (or ignore) price list lines depending on the Boolean you set on the Sales Line. This integrates cleanly with the new pricing model and avoids modifying base code.
     
    If you find this helpful please mark it as verified
  • Suggested answer
    RockwithNav Profile Picture
    8,941 Super User 2026 Season 1 on at
    That wont be that tricky but I will request you you to have a quick go through how system handles the pricing currently, doing so will enable you to understand the process, hierarchy and the perfect event to handle your customization. Try once !!
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,732 Super User 2026 Season 1 on at
    Hello,
     
    To extend Business Central’s new pricing engine with custom criteria, you can use the Price Calculation Context and event subscribers.
     
    First, capture your custom Boolean from the Sales Line using SetCustomData() in the OnBeforeFindPrice event of Price Calculation Management.
     
    Then, subscribe to OnBeforeApplyFilters on the Price List Line table to retrieve that value via GetCustomData() and apply a filter on your custom field in Price List Lines.
  • Bahir Profile Picture
    36 on at
    @Oussama Sabbouh thank u for your help.
     
    However, I have another issue: when I use the 'Lowest Price' method, the system selects the correct price, but when I switch to the Standard method, it seems that the system does not take into consideration the filters I apply.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans