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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Populate items from Purchase price list into Item list on Purchase order line based on Vendor selected on Purchase header

(0) ShareShare
ReportReport
Posted on by

I am new Dynamics BC and still learning my way around BC tables and pages and extensions. My query is :-

On Purchase Order form when Vendor is selected , i want items ("No." field lookup) in Items List on Purchase Order Line to be filtered with Purchase price list items maintained for that Vendor selected on purchase order header. Currently it shows all items in Items list irrespective of Vendor selected. Please suggest a exact approach of how can i do this or any help would be appreciated.

pastedimage1653065494386v2.png

pastedimage1653065372259v1.png

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    Dedicated purchasing lists don’t currently exist when using the item table lookup. It is something which would require development. A possible alternative to consider. Setup recurring purchase lines. You can create these per vendor. You could ensure they contain only the items for that vendor.

    Another alternative would be to produce a PowerApp for this way of creating a PO. BC could then be passed the initial version and used for the approval cycle for example.

  • Suggested answer
    MahGah Profile Picture
    15,613 on at

    I believe no out of the box solution exist for this. You either need customization or you can try the following

    in Item Card go to Related -> Item -> Item reference then create a vendor catalog (make sure to select the vendor no) and populate it with vendor item no.  then in PO line add Item Reference No (Older version Cross Reference No) then try to use this field instead of item no.

  • Community Member Profile Picture
    on at

    If it needs to be done through customization , could you please suggest how it can be done exactly to achieve this functionality?

    Thanks

  • Suggested answer
    MahGah Profile Picture
    15,613 on at

    Do you want to write a code and create extension or your partner? If you like to write a code then you need to learn AL and development. You can watch this series of video www.youtube.com/watch  or  see this  docs.microsoft.com/.../

    if you want to ask your partner than my only suggestion is limit Item Reference to show only the vendor on PO header. this way you have Item No just in case if you want to select other items not related to that vendor.

  • Community Member Profile Picture
    on at

    Yes i am aware about AL programming and extensions and have already learned pretty much. So yes i believe i would require to write code for customization to achieve this. I just need exact approach step by step how to achieve this .

    Thanks

  • Suggested answer
    MahGah Profile Picture
    15,613 on at

    Please see this post for more info. I am not developer but looks like the suggested method worked.

    community.dynamics.com/.../577101

  • Suggested answer
    JAngle Profile Picture
    159 on at

    This is an elegant approach that will give you more control over what page/table you take the user to. In your case it’s the purchase price list. Otherwise I think you would have to add a new field which does as you need and hide the standard if it’s an item type line. Then validate it when you use your new field

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    [quote user="Adeel Ansari"]

    If it needs to be done through customization , could you please suggest how it can be done exactly to achieve this functionality?

    Thanks

    [/quote]

    I would recommend that you work together with your partner so have this solved in the best possible way. They can both suggest a way to do it and assist you with writing the AL code needed.

  • Suggested answer
    YUN ZHU Profile Picture
    102,578 Super User 2026 Season 1 on at

    Hi, How about using Security Filters? This is a out-of-box feature in BC.

    https://yzhums.com/10133/

    Hope this helps.

    Thanks.

    ZHU

  • Community Member Profile Picture
    on at

    Hi Zhu , i dont think that would serve my requirement as i need to filter Item list on Purchase order line with Purchase price list items. Also i dont want to create this separate permission set and then apply to various users. Can you please suggest if this can be done through AL extensions and if yes how exactly would be the approach.

    Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 612 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 489 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 285 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans