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)

(0) ShareShare
ReportReport
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 993 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 993 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans