// Assume you have a custom field 'YourCustomField' added to Sales Shipment Line and Service Item [EventSubscriber(ObjectType::Codeunit, Codeunit::"Service Item Management", 'OnBeforeCreateServiceItem', '', false, false)] local procedure OnBeforeCreateServiceItemFromShipment( var NewServiceItem: Record "Service Item"; SalesShipmentLine: Record "Sales Shipment Line"; SalesLine: Record "Sales Line"; Item: Record Item; Customer: Record Customer; ShipToAddress: Record "Ship-to Address"; ServiceItemGroup: Record "Service Item Group"; ItemTracking: Boolean; var IsHandled: Boolean) begin // Example: Transfer custom field value from Shipment Line to Service Item NewServiceItem."YourCustomField" := SalesShipmentLine."YourCustomField"; end;
Mark below checkbox to make this answer Verified if it helps you.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 4,232
Nimsara Jayathilaka. 2,863
Sumit Singh 2,819