Hi Experts,
How can we change the Subject of the Email, When Sending the PO through Mail,
Thank You
Hi Experts,
How can we change the Subject of the Email, When Sending the PO through Mail,
Thank You
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Document-Mailing", 'OnBeforeGetEmailSubject', '', false, false)]
local procedure OnBeforeGetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer; var EmailSubject: Text[250]; var IsHandled: Boolean);
begin
if ReportUsage = 6 then begin
EmailSubject := 'New Email Subject';
IsHandled := true;
end;
end;
Hi
Thanks For the Quick Reply,
I am New To development , Could You please Provide some Templates of the Code that i can Use?
You have to use OnBeforeGetEmailSubject publisher in Document-Mailing codeunit and change the EmailSubject as per your requirement based on the ReportUsage
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156