ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

CDS Integration code unit "Integration Management" marked for removal, but there is no alternative to the event "OnIsIntegrationRecord" needed to handle the integration of a new table added

Open NeerajBaimbi opened this issue 5 years ago • 4 comments

Describe the bug The codeunit "Integration Management" has been marked for removal in the next release April 2021 but there is no alternative event I can find for replacing the "OnIsIntegrationRecord" event.

image

To Reproduce Steps and to reproduce the behaviour:

  1. Go to '...'

AL Code to reproduce the issue Try to add the following event subscriber: [EventSubscriber(ObjectType::Codeunit, Codeunit::"Integration Management", 'OnIsIntegrationRecord', '', true, true)] local procedure HandleOnIsIntegrationRecord(TableID: Integer; var isIntegrationRecord: Boolean) begin

Expected behaviour An alternative event/code to replace this event of the codeunit.

Screenshots If applicable, add screenshots to help explain your problem. image

5. Versions:

  • AL Language: v6.1.362735
  • Business Central: 17.0

NeerajBaimbi avatar Dec 03 '20 10:12 NeerajBaimbi

This is related to the how the application is extended, not about the functionality of the development environment. I'm going to transfer the issue.

thpeder avatar Dec 08 '20 08:12 thpeder

this is by design we are moving away from integration record as we have field on all tables to handle the sync

AndersLarsen65 avatar Dec 09 '20 08:12 AndersLarsen65

Dataverse and Dynamics 365 Sales integrations do not depend on Integration Records anymore, instead we have moved to using SystemModifiedAt audit field so there's no need for a replacement event to subscribe to. We will be updating customization documentations accordingly.

onbuyuka avatar Mar 15 '21 11:03 onbuyuka

Hi @NeerajBaimbi, I am curious if you have redesigned this already, taking one of your tables as example, let's say Country/Region would you still need to change anything? @onbuyuka as I understand from your response for the examples Neeraj sent with his code he shouldn't do anything as it would no longer require any refactoring, can you confirm this? Could you also please provide a link here to documentation of the v17 and current documentation as well?

Tak/Thank You, Robert

robertosb avatar Oct 18 '21 07:10 robertosb