Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

XML-mapping name for Vendor (Our Account No)

Posted on by 2
Hi,
 
I am trying to find what XML-mapping name I should use to get /Our Account No/ to a purchase order template layout. I can't find which one to use.
 
Thank you for your support!
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    XML-mapping name for Vendor (Our Account No)
    Then you can get it from the vendor and make it part of the report dataset.
    In the OnAfterGetRecord trigger for the purchase order.
     
     
    Using something like this:
     
    var
    Vendor  :record Vendor;
    OurAccount : Code(20);
    Begin
    if Vendor.get(YourVendorNumberHere) then OurAccount: = Vendor : "Our Account no.";
    End;
     
    (Code is only pseudo code)
  • XML-mapping name for Vendor (Our Account No)
    I am not sure if it's part of dataset for Purchasing Order.
     
    It's available on the Vendor information.
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    XML-mapping name for Vendor (Our Account No)
    Are you sure that the field is part of the reports dataset.
    If it is not you will not be able to use it in the layout even though the field exist on the table.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans