How Do I Use the PDF Merger and Outlook Mail Merger?
    • 24 Jun 2024
    • 2 Minutes to read
    • Contributors
    • PDF

    How Do I Use the PDF Merger and Outlook Mail Merger?

    • PDF

    Article summary

    On occasion, users wish to combine multiple Email outputs and multiple PDF outputs into one email with a single, multi-page PDF attachment.

    For example, within Dynamics 365, a customer places a number of orders throughout the day. To reduce the effort involved in processing these orders, they are processed in batches at the end of the day (this would apply if they were manually processed in groups as well).

    The system would normally output one email with one attachment for each of these processed orders. We need to reduce this to one email with a single, multi-page attachment.

    To do this, we will use the PDF Merger module.

    Note

    This module is not included with the standard license and will require additional licensing.

    To achieve this outcome, we need to configure two places within Lasernet: first, we need to add a PDF Merger module and configure it, and then we need to configure the merging settings on the email output module.

    PDF Merger

    The PDF Merger is a module that can be added to Lasernet from within the Developer application. Follow these steps:

    1. Navigate to the Modules screen and then select the PDF Merger from the Engine menu in the Object Box.

    1. Click and drag this into the working area on the right with the rest of the modules, and then double-click the Pass Through Destination object.

    1. Click Destinations in the top toolbar and then select Outmail from the list of Destinations.

    1. Double-click this and swap the destination from Outmail to the PDF Merger.

    1. Double-click the PDF Merger option in the list, and add the following criteria:

    1. Click OK > OK, then navigate to the PDF Merger object and double-click to open it:

    1. From within this window, click Combining in the top menu, select the Enable Job Combining checkbox, and then click Link JobInfos.

    1. Click Add and then add the JobInfo you want to use to combine the PDF documents. For this example, we have used the MailTo JobInfo. Click OK.

    Note

    Be aware of the Timeout option here.

    If your batch job is going to take a long time to run, make sure the combining is not going to time out before the batch job does.

    1. From within the PDF Merger, open the Destinations tab.

    1. Click Add at the bottom of the screen, add Outmail as the destination for the PDF Merger, and click OK at the bottom of the screen to save your changes to the PDF Merger.

    We have now told Lasernet Developer to combine any PDFs it receives within five seconds into one PDF document when it receives a message from Dynamics. The next stage is to ensure that the emails are also combined.

    Email Merging

    Configuring email merging is similar to the PDF merging we have just completed. Follow these steps for configuration:

    1. From within the Modules screen in Lasernet Developer, click the Outlook Mail object to open it.

    1. Click Combining in the top menu as before, and then select the Enable Job Combining checkbox.

    1. Click the Link JobInfos button and select the JobInfos we want to use to link the emails. In the example, we have used the MailTo JobInfo again.

    2. Click OK, and within the Outmail Properties window, ensure the Timeout is set appropriately again.

    1. Click OK to save your changes.

    The system will now combine both Emails and PDFs from the same MailTo address into one Email with a single, multi-page PDF attachment.


    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.