web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,105 Moderator 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.
  • Community member Profile Picture
    2 on at
    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
    1,105 Moderator 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)

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans