Icon

Concatenate Reports and Send by Email

<p>You can easily download and run the workflow within your KNIME installation. For optimal performance, we recommend using the latest version of the KNIME Analytics Platform.<br><br>This workflow aims to demonstrate the features of the Reporting nodes. Specifically, we aim to create three dashboards, paginate them, and generate a PDF report for emailing.<br><br>We used Google Analytics to download anonymous data from our website and created three CSV files in the workflow data area.<br><br>We have organised our report pages by encapsulating different views and text in each component. To edit your page layout, right-click on the component and choose "Open layout editor". You can arrange the items for your report page. Make sure to select "Enable Reporting".<br><br>Here are some helpful tips for using the layout editor:<br><br>- There is no need to add lateral padding as it will be added automatically by the Report PDF Writer node.<br><br>- The "Text View " node helps create page headers, divide elements, and add tooltips or comments to charts.<br><br>- The "Table view" node now supports HTML. Use the Column Expression node to create links or add color to cells. Check out the "Events" component in this example to see how.<br><br>After you have enabled the "Enable Reporting" option, a blue input and output port will appear in the component. Connect the "Report Template Creator" node to the newly created input port and define the page size and orientation in the "Report Template Creator" dialogue to generate the report.<br><br>To combine the report, begin by connecting all output ports of the components to "Report Concatenate." The preview will display three pages that are ready to be shared. To create a PDF of the report, utilise "Report PDF Writer."<br><br>We write the report to a temporary folder in the workflow data area and pass the path as a flow variable. Later, we use this path to attach the PDF to our email in the "Email Sender (Labs)" node.<br><br>After obtaining our PDF file, we must configure the "Email Connector (Labs)" and "Email Sender (Labs)" nodes. In this example, we configured the node to send an email from a Gmail account, open the configuration window of the "Email Connector (Labs)" node and set up the node:</p><ol><li><p>The Mail Host (SMTP) tab has already been set up for you. Your only task is to generate an application password for your Gmail account. To do so, please refer to the "Sign in with app passwords (GMAIL) - Docs" link in the External resources section. This link will provide you with detailed instructions on how to generate the application password. Once you have created the application password, be sure to use it as the node's password.</p></li></ol><p></p><ol start="2"><li><p>In the "Email Sender (Labs)" node specify the recipients, the subject and body or your email. And specify the local path of the PDF to attach (in our case a temp folder) within the field <strong>Attachments (Input Column).</strong><br></p></li></ol>

URL: Sign in with app passwords (GMAIL) - Docs https://support.google.com/mail/answer/185833?hl=en
URL: KNIME Collection: First Steps with KNIME Reporting https://hub.knime.com/knime/collections/First%20Steps%20with%20KNIME%20Reporting~BmSxAYmlmIJtTh7i

Nodes

Extensions

Links