[Event Request] IC Data Exchange API - Add extensibility event before serializing IC Sales Line to JSON
Why do you need this change?
The Intercompany API framework currently provides extensibility events when data is deserialized from JSON into IC Inbox tables:
- OnPopulateICInboxSalesLineFromJsonOnBeforeInsert
- OnPopulateICInboxPurchaseLineFromJsonOnBeforeInsert
- etc.
These events allow partners to populate additional fields from custom JSON properties during the incoming process.
However, there is currently no extensibility point when IC sales lines are serialized into the outgoing JSON payload.
Because of this limitation, it is not possible to transport custom line-level information through the standard Intercompany API process without using unsupported workarounds.
Describe the request
Add an integration event before an IC Sales Line is added to the outgoing JSON payload:
[IntegrationEvent(false, false)] local procedure OnBeforeAddICInboxSalesLineToJson( BufferICInboxSalesLine: Record "Buffer IC Inbox Sales Line"; var JsonObject: JsonObject) begin end;
Usage exemple:
EventSubscriber(ObjectType::Codeunit, Codeunit::"IC Data Exchange API", 'OnBeforeAddICInboxSalesLineToJson', '', false, false)] local procedure OnBeforeAddICInboxSalesLineToJson( BufferICInboxSalesLine: Record "Buffer IC Inbox Sales Line"; var JsonObject: JsonObject) var
Please Reopen it, not closed
Hi @cponcet-pdw,
Thank you for your extensibility request. To help us process it efficiently, please update the issue to include the required information.
Missing Information:
- Target serialization location: Codeunit
IC Data Exchange APIdoes not contain an outgoing IC sales-lineJsonObjectserialization point matching the requested event location. Please identify the exact procedure/location where the outgoing IC sales line should be exposed, or clarify whether the request should target the existingPostICSalesLineToICPartnerInboxflow instead.
Please update the issue with the missing details. We'll automatically re-analyze once updated.
[!NOTE] Automatically generated by the Triage Agent — advisory only. An engineer will review before any action is taken.
[!TIP] Not accurate? Reply with
/not-accurate(optional: add a short explanation). Your feedback improves future responses.