Once the Price Records are /wiki/spaces/KB/pages/99570364 (from Agreements & Promotions line items), you can use (search) them in Quotes, Price Lists, etc. to employ the conditions which they represent.

Example

You are creating a Quote, and would like to calculate the Promotion Discount for the given Customer and Product. That discount is based on the previously made Promotion Contract. You already know that the Promotion Contract is converted into Price Records. So what you really need to do in the Quote calculation logic is to find the relevant Price Records for the given Customer and Product.

But bear in mind that:

How to Search for Relevant Price Records

The trickiest part is the filter for products and customers – that's what we show in the example below. You need to provide here the other filters (for Date and Priority, etc.) as well.

def productFilter = api.productToRelatedObjectsFilter("PR", api.product("sku"))
def customerFilter = api.customerToRelatedObjectsFilter("PR", api.customer("customerId"))
def priceRecordRows = api.find("PR", productFilter, customerFilter)