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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How get inventlocation id from vendtable using x++

(0) ShareShare
ReportReport
Posted on by 6

Thanks and regards

  • Martin Dráb Profile Picture
    240,793 Most Valuable Professional on at

    Which warehouse (InventLocationId) do you want to get?

  • Sachin Mittal Profile Picture
    6 on at

    pastedimage1681357341671v1.png this warehouse which is in venodr general tab

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi Sachin, I think you are referring to InventLocation field in VendTable. It can be accessed directly from vendTable table buffer.May I know what's the issue?

  • Sachin Mittal Profile Picture
    6 on at

    yess

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    is this field not accessible via code? Where exactly are you facing issue.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    If you are able to see the warehouse from UI, then right click and check from which table and what the backend field is and go to SSMS and give a SQL query using relation between those tables. So that you can get the required value.

  • Martin Dráb Profile Picture
    240,793 Most Valuable Professional on at

    I don't have any Site and Warehouse there, therefore it's probably a customization.

    But I can teach you how you can identify the table and field, therefore you won't have to ask others for everything, or you will at least be able to collect more information and ask more specific questions.

    Right-click the field label and highlight Form information. This will already give you two important pieces of information: names of the form and the control:

    pastedimage1681358365164v1.png

    Then click on Form Name: VendTable, which will open Form information form. Expand Administration fast tab, where you can see which datasource/table and field the control is bound to. For example:

    pastedimage1681358641395v2.png

    You can't think of writing code before knowing which field you need.

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    There are InventLocation and InventSiteId fields in VendTable and I believe that is what Sachin Mittal  is asking. However, not sure if there is any issue or just need the details of table fields..

    The fields are not added in form design but probably added via personalization here.

    pastedimage1681359052988v1.png

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 430 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 368

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 364 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans