how to copy records from one company to another company using configuration worksheet without excel

yoheswaran
yoheswaran Member Posts: 13
Hi everyone i need to know how to copy records from one company to another company in business central


thanks in advance.

Answers

  • JJMc
    JJMc Member Posts: 63
    You need to make a peace of program to go throught the records you want to copy and copy them to another record using record.changecompany(companyname) before in the record you want to copy to.

    For example:

    CustomerTo.ChangeCompany('My Company');
    if customerFrom.findset(false) then begin
    repeat
    CustomerTo.init();
    CustomerTo := CustomerFrom;
    CustomerT.Insert();
    until CustomerFrom.next() = 0;
    end;
  • yoheswaran
    yoheswaran Member Posts: 13
    it is possible by importing records from one company and exporting that records into another company without program