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
Hi,
 
If I have a recordInsertList filled, Am i able to get the tableId from it by code?
  • André Arnaud de Calavon Profile Picture
    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.
  • Suggested answer
    Hana Xue Profile Picture
    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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans