Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] Table 77 - Report Selections - OnGetEmailBodyAsHTML #22071

Open
rvanbekkum opened this issue Feb 8, 2023 · 0 comments
Open
Labels
extensibility-enhancement New feature or request related to extensibility SCM GitHub request for SCM area

Comments

@rvanbekkum
Copy link
Contributor

Dear ALAppExtensions team,

Through this event request we would like to request event publisher OnGetEmailBodyAsHTML to be added as described in issue #20752.
We would like the following changes to be applied for this to become extensible:

  1. Already completed as part of issue [Enum Request] Table 77 - Report Selections - "Email Body Layout Type" as extensible enum #20752.
    Change the "Email Body Layout Type" field in table 77 "Report Selections" to an extensible enum.

  2. Update GetEmailBodyTextForCust to account for new enum values that were added via an extension, e.g.:

        case "Email Body Layout Type" of
            "Email Body Layout Type"::"Custom Report Layout":
                ServerEmailBodyFilePath :=
                    SaveReportAsHTML(TempBodyReportSelections."Report ID", RecordVariant, TempBodyReportSelections."Email Body Layout Code", ReportUsage);
            "Email Body Layout Type"::"HTML Layout":
                ServerEmailBodyFilePath :=
                    O365HTMLTemplMgt.CreateEmailBodyFromReportSelections(Rec, RecordVariant, CustEmailAddress, EmailBodyText);
            // >> BEGIN NEW CODE
            else begin
                TempBlobHTMLBody.CreateOutStream(OutStreamHTMLEmailBody);
                OnGetEmailBodyAsHTML(TempBodyReportSelections, RecordVariant, OutStreamHTMLEmailBody);
    
                // * This code is only necessary if the code is not going to be updated yet to use Streams instead of Files.
                TempBlobHTMLBody.CreateInStream(InStreamHTMLEmailBody);
                ServerEmailBodyFilePath := FileManagement.InstreamExportToServerFile(InStreamHTMLEmailBody, '.html');
            end;
            // << END NEW CODE
        end;
  3. Apply the same as suggested in (2) for procedure GetEmailBodyForVend.

@AlexanderYakunin AlexanderYakunin added the extensibility-enhancement New feature or request related to extensibility label Feb 8, 2023
@JesperSchulz JesperSchulz added the SCM GitHub request for SCM area label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensibility-enhancement New feature or request related to extensibility SCM GitHub request for SCM area
Projects
None yet
Development

No branches or pull requests

3 participants