Skip to content

[Event Request] Codeunit 561 - IC Data Exchange API - Pass the temporary IC inbox headers by VAR in the OnBeforeBufferICInbox…HeaderInsert events #11058

Description

@aspivak12

Why do you need this change?

An extension that adds a BLOB field to IC Inbox Sales Header / IC Inbox Purchase Header cannot get that value into Buffer IC Inbox … Header when IC documents are sent over the API connection.

TransferFields copies a BLOB only if it is loaded, and FindSet on a temporary record does not load it. CalcFields would but it only works through a var record.

Describe the request

Add var to the temporary source-record parameter in the two OnBefore…Insert events of codeunit 561. Subscribers can then call CalcFields and write the result into the buffer record, which is already var.

Both events are in the same object and are the symmetric pair of one pattern, so they are submitted together.

EventRequest

[IntegrationEvent(false, false)]
local procedure OnPostICSalesHeaderToICPartnerInboxOnBeforeBufferICInboxSalesHeaderInsert(var BufferICInboxSalesHeader: Record "Buffer IC Inbox Sales Header"; var TempICPartnerICInboxSalesHeader: Record "IC Inbox Sales Header" temporary; ICPartner: Record "IC Partner"; RegisteredPartner: Record "IC Partner" temporary)
begin
end;

EventRequest

[IntegrationEvent(false, false)]
local procedure OnPostICPurchaseHeaderToICPartnerInboxOnBeforeBufferICInboxPurchaseHeaderInsert(var BufferICInboxPurchaseHeader: Record "Buffer IC Inbox Purch Header"; var TempICPartnerICInboxPurchaseHeader: Record "IC Inbox Purchase Header" temporary; ICPartner: Record "IC Partner"; RegisteredPartner: Record "IC Partner" temporary)
begin
end;

Provide an implementation (optional)

  • I will provide the implementation for this extensibility request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions