1. Home
  2. Docs
  3. Apps
  4. Edit In Outlook
  5. Extensibility

Extensibility

The app provides various Integration Events that allow you to customize the email generation behaviour. Below is an overview of the available events and how to use them.

Before generating an email (.EML File)

OnBeforeGenerateEML (general)
Triggered: Before an EML file is generated.
Parameters:

  • EmailMessageId: Guid (Unique ID of the email message)
  • var IsHandled: Boolean (Indicates whether default processing should be skipped)

Example implementation:

[EventSubscriber(ObjectType::Codeunit, Codeunit::"QTEAM EIO Email Functions", 'OnBeforeGenerateEML', '', false, false)]
local procedure MyCustomEMLHandler(EmailMessageId: Guid; var IsHandled: Boolean)
begin
    IsHandled := true;
    // Add custom logic here
end;

OnBeforeGenerateEMLFilePostedShipment
Triggered: Before an email is generated for a posted warehouse shipment.

OnBeforeGenerateEMLFileShipment
Triggered: Before an email is generated for a warehouse shipment.

OnBeforeGenerateEMLFromList
Triggered: Before an email is generated from a list.

Parameters:

  • RecVariant: Variant (The relevant record)
  • ReportSelectionUsage: Enum "Report Selection Usage" (Which report selection is used)
  • Subject: Text (Email subject)
  • ToEmail: Text (Recipient email address)
  • var IsHandled: Boolean (Indicates whether default processing should be skipped)

After generating an email (.EML File)

OnAfterGenerateEML (general)
Triggered: After an EML file is generated.

Parameters:

  • FileName: Text (Filename of the generated email)
  • FileContent: Instream (Content of the file)

Example implementation:

[EventSubscriber(ObjectType::Codeunit, Codeunit::"QTEAM EIO Email Functions", 'OnAfterGenerateEML', '', false, false)]
local procedure MyCustomPostProcessing(FileName: Text; FileContent: Instream)
begin
    // Add custom processing, e.g., save to an archive
end;

OnAfterGenerateEMLFilePostedShipment
Triggered: After an email is generated for a posted warehouse shipment.

OnAfterGenerateEMLFileShipment
Triggered: After an email is generated for a warehouse shipment.

OnAfterGenerateEMLFromList
Triggered: After an email is generated from a list.


Conclusion

By utilizing these integration events, you can flexibly extend and customize the Edit in Outlook app to fit your business processes. Whether you want to add extra validations, modify emails, or automate workflows, these events provide the hooks to integrate your own functionality.

Do you have any questions or need help with implementation? Feel free to contact us!

How can we help?