Update Multiple Companies from One Company

SOLVED

Hi All,

I need to do the following:

Update multiple company from one company.

Lets say I have company A, B, C, D, E.

Login in Company A, I add new customer and company B,C,D,E must add the same new customer, and vice versa.

Is it possible to do it using the Sage 200 assemblies library?

If anything that I can found regarding companies is just getting the companies name and its database name using Sage.Common.ApplicationInterface.ICompanyProxy.

My alternative solution is based on reference in https://my.sage.co.uk/Sage200SDKDocs/html/DOC0093_Overview.html.

With only company name & database, I am planning to get the credential using Sage.Common.Credential.DatabaseCredential, use raw query to insert new row in other database. But then I have to know which exact tables to insert. Is this solution acceptable?

Thank you in advance.