Skip to main content

Notifications

Dynamics 365 general forum

Foreign Key in Opportunity Product for PriceList

Posted on by Microsoft Employee

I need to get PriceList from OpportunityProduct programatically. My question is which field links Opportunity Product with PriceList?

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Foreign Key in Opportunity Product for PriceList

    Hi Partner,

    My demo opportunity product which has added an existing product.

    o001.png

    I have found 2 ways to access price list from opportunity product.

    1. There is an existing managed field called  Price List for opportunity product entity,

    o002.png

    and you can also find a relationship in N:1 relationship menu.   

    o003.png

    However, the field is null from web API query.  

    2. There is a field called Default Price List in Product entity, 

    o004.png

    while Existing Product field has been included in opportunity product, 

    so we could find the related price list entity information by getting Existing Product's Default Price List in opportunity product entity.

    o005.png

    My test result below:

    https://<org>/api/data/v9.1/opportunityproducts(opportunityproductid)

    test01.JPG

    https://<org>/api/data/v9.1/products(productid)

    test02.JPG

    https://<org>/api/data/v9.1/pricelevels(pricelevelid)

    pastedimage1563963037365v6.png

    Regards,

    Clofly

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans