To insert record in another company from code

manish_smanish_s Member Posts: 10
edited 2007-05-22 in Dynamics AX
Hi frnds,
I m new to axapta, need help.
I m trying to insert record from one company to another company by code.
For ex. I m currently in Dat company. For a specific emplId , I hav to insert that record in another company, say "sat".I used changeCompany() function for that.The numberSequence format of emplid in "sat" company should be acc. to sat company only.
Any hint will be helpful.
Thanks in advance.

Comments

  • MikerMiker Member Posts: 105
    Hi manish_s.
    Use the changecompany() - the only one way to fill DataAreaId field in table.
    But you can also use directly access to database trough class connection.
    \:D/
    going to Europe
Sign In or Register to comment.