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...
Suggested Answer

Retain Purchase Line Description after changing vendor name in Purchase Header

(0) ShareShare
ReportReport
Posted on by 132

Hi All,

We ask employees to use purchase quotes to submit requests for non-inventory related items. When an employee needs something from a vendor that is not in our BC system, we ask them to use a generic vendor No. 0000 (Vendor Not Listed).

When they use this vendor, in the purchase lines, we ask them to use the Description to include some details about the item they are purchasing.

After the approval process is completed - and the Purchase Header is set to Released - our finance goes in, opens the Purchase Header and updates the No. 0000 with an actual vendor name (after we identify one). When this happens, the purchase line Descriptions get reset and the user entered description is erased, and overwritten by the default description value.

So my question is, how do I retain the original purchase line description, and maintain it even after the vendor name has been changed? 

Thank you

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,461 on at

    Hi,

    As you mention 1st user create a Purchase Quote on that time they pick non-Inventory Item. Once Purchase Quote is approved and Then they create a Actual Item & Pick correct or Final Vendor on Purchase Order, In this case you change the Item no. as you create a new Item. So system will pick it's description from item card and delete the old one. which is added on Purchase Quote. I suggest instead of description create a new field for notes enter it to Purchase quote and once quote convert to order transfer it to Order. In my suggestion this how you can fulfil your requirement. 


    Many Thanks,
    Manan


  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Maybe you should look into the catalogue items functionality in Business Central and consider using that instead of the procedure you use now.

    learn.microsoft.com/.../inventory-how-work-nonstock-items

    To retain the description and continue using the procedure you use now you will have to do customization to your system.

  • Suggested answer
    Dynamics 365 Profile Picture
    6 on at

    Hello Sammy,

    You Can add those details in Comments Action at Purchase Quote header Level.

    pastedimage1671981769700v2.png

    pastedimage1671981784170v3.png

    pastedimage1671981793922v4.png

    pastedimage1671981806582v5.png

    pastedimage1671981819606v6.png

    pastedimage1671981829851v7.png

    Why it's happening ?

    Because when you changed the Vendor at Purchase order header level, System will update the Line Details also and it will take form Item card.

    pastedimage1671981904206v8.png

    Hope it will help you.

    Please Verify my answer if you found this relevant and it will help to other Community member also.

    Thanks

    Aman

  • SammySevens Profile Picture
    132 on at

    Thank you for the suggestion - and appreciate the screenshots. Yes this is my understanding as well, but I still need to find a means to persist the description instead of changing the current process. Thank you anyway.

  • SammySevens Profile Picture
    132 on at

    Hi Inge,

    I am looking for some guidance on customization. I am comfortable in AL programming already and have done various customizations (events, reports, flowfields, codeunits) - but can not identify an appropriate method

    Do you have some suggestions?

    • I thought of using xRec and Rec on the page view - but I can not complete it
      • If Xrec = 0000 and Rec <> 0000 then.... - but how do I retain the xRec of the purchase line? 
    • Looking at event subscriber with codeunit is a similar issue - as I do not have an xRec or Rec value to reference - so not sure what to do there

    Appreciate some guidance, think I can do this - just not sure on what methods to use.

    Thank you and Merry Christmas

  • Dynamics 365 Profile Picture
    6 on at

    Hi Sammy

    As per Microsoft base functionality,If you changed the vendor at purchase order then system will refresh the Line details as well.

    Without any customisation, you can go with comments.

    But if you want to follow same process then you need to customise it with Technical end.

    Thanks

    Aman

  • SammySevens Profile Picture
    132 on at

    Thank you Aman, and yes I would like to customize it - do you have a suggestion on some methods I could try. I am comfortable in AL programming - but stuck at this problem :S

  • Dynamics 365 Profile Picture
    6 on at

    Hey Sammy,

    Sorry but I would help only in Functional Side.

  • Suggested answer
    Mohana Yadav Profile Picture
    61,218 Super User 2026 Season 1 on at

    try this code. you can add additional conditions if you want.

       [EventSubscriber(ObjectType::Table, Database::"Purchase Header", 'OnRecreatePurchLinesOnBeforeInsertPurchLine', '', false, false)]

       local procedure OnRecreatePurchLinesOnBeforeInsertPurchLine(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line"; ChangedFieldName: Text[100]);

       begin

           PurchaseLine.Description := TempPurchaseLine.Description;

       end;

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,260 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,515 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,373

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans