Skip to main content

Email

Emails containing data can be used to easily set up automated data flows in Nexla. Data detected from an email source is automatically organized into Nexsets that can be transformed and sent to destinations like any other Nexset. With an email destination in a data flow, Nexset data can be sent to any email address in an attachment.

1. Create an Email Data Source

Nexla can ingest data from tables inside the email body or from attachmentsincluding using optical character recognition (OCR) to read data in attachments such as PDFs and images.

  1. After logging into Nexla, navigate to the Integrate section by selecting Integrate.png from the platform menu on the left side of the screen.

  2. Click New Data Flow.png at the top of the Integrate toolbar on the left to open the Select Source Type screen.

      NewDataFlow2.png

  3. Select the Email.png connector, and click Next.png in the top right corner of the screen.

1.1 Configure the Email Data Source

  1. Enter a name for the email source in the Data Source Name field.

      Name.png

  2. In the Advanced Settings panel on the right side of the screen, select the part of each email Nexla should read for data and Nexset detection from the Dataset Detection Mode pulldown menu.

    • Email Attachments (Text) This option configures Nexla to automatically detect data in email attachments that do not require optical character recognition, including file formats such as AVRO, CSV, EDI, XLSX, XLS, JSON, ORC, Parquet, TSV, XML, etc.
    • Email Content This option configures Nexla to automatically detect data located in tables within the email body.
    • Image/PDF Email Attachments This option configures Nexla to automatically detect data in email attachments that require optical character recognition, such as PDF or image files.

      DetectionMode.png

  3. Optional: Nexla is automatically configured to detect the format in which each file should be parsed. To force all files from this email source to be parsed in a specified format, select the corresponding option from the File Content Format pulldown menu in the Advanced Settings panel.

    The pre-selected "Automatically Detect Format" option is appropriate for most use cases, including those in which the email source contains files in more than one format.

      FileContentFormat.png

  4. Optional: To configure Nexla to detect a single schema when reading data from this email source, select "Yes" from the Enforce Detection of Single Schema pulldown menu.

    When the detection of a single schema is enforced for an email source, new data will result in the growth of that schema. Newly detected data that is unrelated to the schema will be quarantined for reprocessing.

      SingleSchema.png

  5. Click CreateEmailSource.png.

      CreateEmailSource2.png

  6. Copy the unique email ID generated for this email data source, and paste it into a word processing document for use in Section 1.2.

    The generated email ID is unique to this email data sourcea new ID is generated for each email data source added to a Nexla account.

      EmailID.png

  7. Click Create.png in the top right corner of the screen to save and create the email data source.

  8. After successfully creating the email data source, it will be displayed in a flow view with the message "Waiting for data...", as shown in the example below.

    Important Note: Nexla will now begin scanning the email source for data, but the steps in Section 1.2 must be completed before Nexla can receive data from this source.

      EmailSourceCreated.png

1.2 Set Up Email Forwarding Rules

  1. Log into the email account associated with the email data that Nexla should read, and set up forwarding rules to forward relevant emails to the unique ID copied in Section 1.1.

    See the email provider's documentation for instructions on how to set up email forwarding rules.

  2. Once emails are forwarded to the email ID, Nexla will scan them and organize detected data into one or more Nexsets according to the configured settings for the email data source.

    Important Note: Nexla will scan the source for new email content at fixed intervals; thus, observing a 10-15 minute delay between an email appearing in the associated email account and the data that it contains becoming available in Nexla.

2. Send Data as an Email Attachment

Nexla's bi-directional connectors allow data to flow both to and from any location, making it simple to set up up a data flow that sends data to an email destination.

2.1 Select the Destination Type

  1. Locate the Nexset that will be sent to the email destination.

    • To view all accessible Nexsets within their associated data flows, navigate to the Integrate section by selecting IntegrateIcon.png from the platform menu on the left side of the screen. In the All Data Flows screen, click on a listed data flow to view all detected and transformed Nexsets that it contains.
    • To view a list of all accessible Nexsets, select IntegrateIcon.png from the platform menu, and select Nexsets.png from the Integrate menu on the left to open the Nexsets screen.
  2. Click the Send.png icon on the Nexset. This will open the Send Nexset to Destination screen.

      SendNexset.png

  3. Select the Email.png connector, and click Next.png in the top right corner of the screen.

    This will open the Configure.png screen.

      Configure2.png

2.2 Configure the Data Destination

  1. Enter the email address to which the data will be sent in the E-Mail Recipient of Data field.

      Recipient.png

  2. Select the format in which the data will be sent from the Data File Format pulldown menu.

      FileFormat.png

  3. Enter the subject line for the email containing the data in the Subject field.

      Subject.png

  4. Enter the text that will be sent in the body of the email in the E-Mail Body field.

      BodyText.png

  5. The Sample Request Payloads pane on the right displays sample records from the request payload. Ensure that these sample records match the intended data content and format.

      SamplePayloads.png

2.3 Save and Activate the Email Data Destination

  1. Once all of the steps in the preceding sections have been completed, click Save.png in the top right corner of the screen.

  2. The confirmation screen indicates that the configured email destination has been successfully created in the data flow.

      Confirmation.png

  3. Optional: To edit the name of the newly created destination in this screen, click on it, and enter the desired text.

      SourceName.png

  4. Optional: To enter a description of the newly created destination, click on Description_SuccessScreen.png, and enter the desired text.

      SourceDesc.png

    • To activate the flow of data into the database destination now, click Activate_Flow.png.

    • To activate the flow of data into the database destination later, click Done.png in the top right corner of the screen.

      1. When the destination is ready to be activated, find the flow in the All Data Flows screen, and click Edit2.png on the destination.

          Edit3.png

      2. Click Activate.png on the menu that appears to activate the flow of data to the database destination.

          Activate2.png