ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

codeunit 5342 "CRM Synch. Helper" OnBeforeGetCoupledCDSUserId event

Open ReneGubler opened this issue 1 year ago • 4 comments

Describe the request

Please add an event OnBeforeGetCoupledCDSUserId

Image

Additional context

In ISV solutions we add additional tables. This can't' be done without an event to handle the User for additional tables. Internal work item: AB#566732

ReneGubler avatar Feb 24 '25 07:02 ReneGubler

@ReneGubler Why cannot you add an event to add the tables? Why does it need to be a handled event? Can we run the existing logic and if nothing is found to raise an event and ask the extension code to find it?

nikolakukrika avatar Feb 24 '25 17:02 nikolakukrika

The problem is this error:

Image

Many customers do not have all Sales Persons coupled. For uncoupled sales person they often want to have a default owner but most of them want to have a team as owner. So the default logic to have a team or a person dos not always fit the customers requirements.

An event OnBefore...Error would also be a possibility.

The moment I'm writing this comment I just realized we simply can add our own "Ower-Field" and the problem is solved

ReneGubler avatar Feb 25 '25 10:02 ReneGubler

@ReneGubler Can we close the event request if you can add the field? We tend to add less events as we have added over 30.000 of them.

I would much prefer to avoid the IsHandled and add an event to find the record if the existing logic cannot find it and then throw an error. Alternative is to provide a Find event instead of IsHandled, then at least we have a clear usage of why we have the event.

nikolakukrika avatar Feb 25 '25 18:02 nikolakukrika

Closing since there's an alternative

onbuyuka avatar Mar 05 '25 17:03 onbuyuka