Example

This example Data Stream demonstrates how to use this Action Agent to fetch alert emails for pump readings from the IMAP mail server.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Email Download onto the canvas and rename the Agent. Link the input endpoint to the pump data, the output endpoint to the printer, and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection.

Step 3: Configure Server

Set the host and port. In this case, keep the default protocol options.

Step 4: Configure Authentication

Set the Username and Password.

Set Authentication. In this case, set Authentication to OAuth and enter values for Client ID, Client Secret, and Tenant ID.

Step 5: Settings

Select an attribute for the message Id settings. in this case, select 'PumpId'

Step 6: Results

Apply the changes, save the Data Stream and publish it.

Let's look at the Live Data View. Observe the pump temperature data is printed, with the email file content appended.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated