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

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
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    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.
  • HL-27040934-0 Profile Picture
    2 on at
    I am not sure if it's part of dataset for Purchasing Order.
     
    It's available on the Vendor information.
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    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)

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 531 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans