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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to insert a record from table 1 into table 2 using codeunit?

(0) ShareShare
ReportReport
Posted on by 5

I am trying to use insert function to insert a record from one table into another and call in into the action button of page, How to do that?

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    96,256 Super User 2025 Season 2 on at

    Hi, the main method is Insert(Boolean, Boolean) Method.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-insert-boolean-boolean-method

    A very simple example:

    pastedimage1638407816386v1.png

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    Mohana Yadav Profile Picture
    61,019 Super User 2025 Season 2 on at

    Do you have any code sample that you have tried and not working?

    I can have a look and suggest.

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

News and Announcements

Season of Giving Solutions is Here!

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 1,594

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#3
YUN ZHU Profile Picture

YUN ZHU 748 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans