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 :
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
    Mohana Yadav Profile Picture
    61,184 Super User 2026 Season 1 on at

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

    I can have a look and suggest.

  • Suggested answer
    YUN ZHU Profile Picture
    98,304 Super User 2026 Season 1 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans