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

How to get tableId of recordInsertList by x++?

(0) ShareShare
ReportReport
Posted on by 1,552
Hi,
 
If I have a recordInsertList filled, Am i able to get the tableId from it by code?
I have the same question (0)
  • Suggested answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    How to get tableId of recordInsertList by x++?
    Hi,
    As Andre said, the premise of using recordsinsertlist is that you know which table to use. Like the picture below:

    The steps to insert a record are to populate a table buffer, make sure at least the required fields are set, and then call the inset() method on the table buffer. Table buffer variables are declared in X++ by writing the name of the table being used, followed by the variable name. So, you can take a look at the table buffer.
    Best Regards,
    Hana
  • André Arnaud de Calavon Profile Picture
    297,399 Super User 2025 Season 2 on at
    How to get tableId of recordInsertList by x++?
    HI Junior AX,
     
    Can you tell the background of this question? If you fill the recordInsertList, you know what table you are using. So, why would you need to know the table ID? You can get it from the table buffer you use to fill the recordInsertList.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 785 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 626 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 621 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans