I am getting error when trying to use CRM Table from sales 365 to Business Central and modify or update in Sales 365 (CRM) using Custom Business Central API.
Exemple :
Error: "Table connection for table type CRM must be registered using RegisterTableConnection or cmdlet New-NAVTableConnection before it can be used"
procedure LookupCRMProduct(var CRMName: Text[250]): guid
var
CRMProduct: Record "CRM Product";
begin
CRMProduct.SetRange("Name", CRMName);
if CRMProduct.FindFirst() then
exit(CRMProduct.SystemId);
exit('');
end;