ABaludin / CDSBox

Custom table replication with different field types to CDS
4 stars 4 forks source link

facing issue using CDS table for integration #1

Open zakirhussainwarsi opened 3 years ago

zakirhussainwarsi commented 3 years ago

hello ,

i hope you are well, I'm facing problem while doing integration with CRM using CDS (Table Types CDS).

Error which i am getting during integration table is not register

ABaludin commented 3 years ago

Hi! You need to have this event, as I think (replace DATABASE::AWR_Box with your table) :

[EventSubscriber(ObjectType::Codeunit, Codeunit::"Integration Management", 'OnIsIntegrationRecord', '', true, true)]
local procedure HandleOnIsIntegrationRecord(TableID: Integer; var isIntegrationRecord: Boolean)
begin
    if TableID = DATABASE::AWR_Box then
        isIntegrationRecord := true;
end;
Blacksheep13-NJ commented 3 years ago

Hi,

I hope this message finds you well. I'm having issues integrating the dataverse... all is set on the BC (Business Connect) side of things except for this. I hope you can help. Thanks much :)

PS F:\ALProjectDataverse> C:\users"user".vscode\extensions\ms-dynamics-smb.al-7.2.475273\bin\altpgen.exe -project:F:\ALProjectDataverse -packagecachepath:F:\ALProjectDataverse.alpackages -serviceuri:https://******.crm6.dynamics.com -entities:cr55c_job_test -baseid:50000 -tabletype:CDS

Microsoft (R) AL Table Proxy Generator version 7.2.7.16535 Copyright (C) Microsoft Corporation. All rights reserved

Authenticating CDS using ServiceUri=https://******.crm6.dynamics.com error CDS0001: