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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Insert Record from One company to Another Company

(0) ShareShare
ReportReport
Posted on by 2,100
Hi Community,
 
I want to insert records from one company to another company. For that, I have created a custom table & Page to store data and I have also created an action button. After Clicking on this Button Data is separated According to their Type. [For example, if line type is order, it will go into Sales Order page & similarly quote goes into the sales quote page]
 
I Have 2 companies. so if the line type is order and the customer type is 'XYZ', the sales order should be inserted into the /xyz/ company's sales order page. Similarly, if the line type is Quote and the customer type is 'abc', the sales quote should be inserted into /abc/ Company's sales quote page.
 
 
Thank You.
 
I have the same question (0)
  • Suggested answer
    NAV_with_Narang Profile Picture
    2,294 Moderator on at
    Please use CHANGECOMPANY function to transfer data to another company
     
  • Suggested answer
    YUN ZHU Profile Picture
    95,595 Super User 2025 Season 2 on at
    Hi, hope the following helps as well.
     
    Thanks.
    ZHU
  • Inkey Solutions Profile Picture
    2,100 on at
    Thank You @YUN ZHU for your Suggestion.
     
    I have tried it & It also works as the selected record can be copied from one company to another but I want to copy all the records into another company based on certain conditions which I have included in the following code, and those records should be automatically inserted into the sales header table.
     
     
    Thank You

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…

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans