Hi I have an entire codeunit that I need to obsolete for a SAAS app. (ID changed for simplicity)
Could anyone confirm if the Obsolete format is correct. We need to put the Obsolete state inside the codeunit and not above it?
After the first release we use the CLEAN25 in the app Json and release again. Only after this will the ID be removed?
codeunit 50000 "Eventsubscribers"
{
#if not CLEAN25
ObsoleteReason = 'Duplicate ID in another app';
ObsoleteState = Pending;
ObsoleteTag = 'TEST-381';
#else
ObsoleteState = Removed;
ObsoleteTag = 'TEST-381';
#endif
[EventSubscriber(ObjectType::Table, Database::"Sales Header", 'OnAfterCheckSellToCust', '', false, false)]
local procedure OnAfterCheckSellToCust(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; Customer: Record Customer; CurrentFieldNo: Integer)
begin
SalesHeader.Validate("Customer Type", Customer."Customer Type");
end;
}
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.