ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

codeunit 7205 "CDS Int. Table. Subscriber" event OnBeforeTransferFieldData

Open ReneGubler opened this issue 1 year ago • 2 comments

Describe the request

Please add an event OnBeforeTransferFieldData(SourceFieldRef: FieldRef; DestinationFieldRef: FieldRef; var NewValue: Variant; var IsValueFound: Boolean; var NeedsConversion: Boolean);

Image

Additional context

In ISV solutions is not always possible to use the default behavior to assign the Owner by a Sales Person field. Also handling of the Primary Contact No. doesn't fit if the _Primary Contact No. solution also sync. Contacts with the type Company. The standard code fails in this case. Internal work item: AB#566730

ReneGubler avatar Feb 24 '25 06:02 ReneGubler

@ReneGubler this should be also mitigated by new mapping for owner. Not sure if I understand the issue with contacts, do you still need this event? I don't like the idea of completely skipping standard code regardless of the mapping (leaving the check to subscriber). Maybe if you still need it then you can find a better hook inside if DestinationFieldRef.Name() = 'Primary Contact No.' then begin check?

onbuyuka avatar Mar 05 '25 17:03 onbuyuka

closing

onbuyuka avatar Mar 14 '25 15:03 onbuyuka