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
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156