I need to copy a product from company A to company B and at the same time in CRM, I also need to couple them (BC to CRM) in both companies.
I manage to create the product in company B and also in CRM but at the time of making the coupling only in company A and I cannot do it in company B.
This is my code:
CRMID := NewCRMProduct.CreateProduct(vitem);
If CRMID <> '' then
//change of company, this is the part that doesn't work
if pcompany.FindFirst then begin
IF vItemIC.findfirst THEN begin
it doesn't throw errors, it just doesn't do the coupling at company B.
Thanks in advance