KVSKBABEOFrediMapping#
Events#
OnBeforeMapRecipientContactPerson(Record KVSKBAPostedDispatchHandHeader, JsonObject, Boolean) :#
Summary: This event allows to influence the mapping of the recipient contact person. Since the contact person information on the Posted Dispatch Handling Header is very limited, this allows to fill in more details based on the existing information on the header or by using custom logic (e.g. retrieving data from a custom table). If IsHandled is set to true, the standard mapping logic will be skipped.
[IntegrationEvent(false, false)]
local procedure OnBeforeMapRecipientContactPerson(PostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var ReturnObject: JsonObject; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBABEOFrediMapping", 'OnBeforeMapRecipientContactPerson', '', false, false)]
local procedure DoSomethingOnBeforeMapRecipientContactPerson(PostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var ReturnObject: JsonObject; var IsHandled: Boolean)
begin
end;
Parameters:
PostedDispatchHandHeader: The posted dispatch handling header record for which the mapping is executedReturnObject: The JSON object that will be sent to BEO Fredi as part of the shipment information. The mapping logic fills in the contact person details in this object, so it can be influenced here.IsHandled: If set to true, the standard mapping logic in the MapRecipientContactPerson procedure will be skipped. This allows for custom handling of the recipient contact person mapping.