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

Notifications

Announcements

No record found.

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!
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 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.
  • Community member 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
    Inge M. Bruvik Profile Picture
    1,111 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans