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)
Why do you need this change?
An extension that adds a BLOB field to
IC Inbox Sales Header/IC Inbox Purchase Headercannot get that value intoBuffer IC Inbox … Headerwhen IC documents are sent over the API connection.TransferFieldscopies a BLOB only if it is loaded, andFindSeton a temporary record does not load it.CalcFieldswould but it only works through avarrecord.Describe the request
Add
varto the temporary source-record parameter in the twoOnBefore…Insertevents of codeunit 561. Subscribers can then callCalcFieldsand write the result into the buffer record, which is alreadyvar.Both events are in the same object and are the symmetric pair of one pattern, so they are submitted together.
EventRequest
EventRequest
Provide an implementation (optional)