codeunit 7205 "CDS Int. Table. Subscriber" event OnBeforeTransferFieldData
Describe the request
Please add an event OnBeforeTransferFieldData(SourceFieldRef: FieldRef; DestinationFieldRef: FieldRef; var NewValue: Variant; var IsValueFound: Boolean; var NeedsConversion: Boolean);
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 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?
closing