# Email Validation using Harmony Batch

The designation of Client Role and Locale within the batch setup indicates the PDP utilized for phone validation processes across various geographical contexts.

## Pre Reading

Please ensure you have read and understanding the previous configuration steps for Australia and New Zealand.

Below is the simple illustration of our phone validation processing using a small file in Australia with Harmony Batch System. A more comprehensive guide detailing the instructions on how to set up a batch job can be checked here [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

## **Steps to run Batch Job**&#x20;

### **1. Job Config**

It is expected that the customer has configured the [Setup HostedEmailValidation PDP](/harmony-suite/user-guides/version-3.0.0/email-and-phone-validation/phone-and-email-pdp-configuration-setup.md#setup-hostedemailvalidation-pdp) prior to executing a batch process.

Log in to HBS UI and select New Cleanse

Select the required Client Role that is attached to the component group that has HostedEmailValidation PDP added.

Select the Locale as Australia

<figure><img src="/files/83rmBKg82ASStuT18l0v" alt=""><figcaption></figcaption></figure>

### 2. Input

#### **Click Input on the left panel to display the Input Reader panel. There are seven tabs in this panel, each with its own set of fields.**

Refer Page No 14 of the [**Harmony Batch System Cleanse Reference Guide**](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md) to get an idea on how to configure the Input file for batch processing.

Quick configuration on how to configure an input file that consists of the fields below is provided here.

**Input File:** File comprises of Id, Input Email

<div align="left"><figure><img src="/files/RSy11cTH83usXhaoXnjp" alt=""><figcaption></figcaption></figure></div>

#### **General panel**

Choose your input file and correct configuration for your phone file.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/oT4r5KiRJVRD6qPUr4UU" alt=""><figcaption></figcaption></figure>

#### **Detail Record Panel**

Ensure you correctly check the details versus your input file.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/B85evp3oxW5FtMB7fZHD" alt=""><figcaption></figcaption></figure>

**Baseline Fields panel**

Very important step as this information forms part of the Logical Record mapping between your input file and what the HBS system requires to process.

***Auto populate fields:*** If you have ticked 'first detail record represents baseline fields' then right click on white panel and retrieve the field names. This will auto populate the fields.

***Manually enter fields:*** Type your input column names into the table within the panel.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/Tgkaim91BK0q0c7wyNe1" alt=""><figcaption></figcaption></figure>

#### **Logical Record**&#x20;

**HBS Logical Record represents the input baseline fields that are mapped to Harmony data models for batch processing.**

The left column "Name" is Harmony name representation for a field.&#x20;

The right column "Generated By" is the Input File name for the field with the same meaning.

Input Email from the baseline fields has been mapped to HARMONY\_EMAIL

Input Id is the sequential id from baseline fields, it can be mapped to HARMONY\_ID.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

*Example 3: Mock Logical Record mapping*

<figure><img src="/files/FNmV3oA4IZgHmVueBFaN" alt=""><figcaption></figcaption></figure>

### **3. Preprocessor**

Not Applicable

### **4. Output**

#### **Harmony Output on the left panel represents the configuration of the output file and the fields to be returned in the output file.**

**General tab:** To configure the file layout specifications.&#x20;

<figure><img src="/files/wSEkfFuvhrdAxUZ2EK2W" alt=""><figcaption></figcaption></figure>

**Field Definition:** Defines the fields to be output to the output file.

click on ![](/files/k1lfZnb3b67g6mkjI53G) to open the Logical field creation window and then select the input baseline fields the user wish to see in the output file, click Done.  The selected field will then be added to the Name column.

To add the Output fields from HostedEmailValidation PDP to be shown in the output file, click on ![](/files/k1lfZnb3b67g6mkjI53G) to add party.email.fieldname

<figure><img src="/files/qROHIEcHJuMMpQB4ftI9" alt=""><figcaption></figcaption></figure>

**Sample text output:**

Please refer to the sample illustration for email validation with detailed understanding using various samples.

<figure><img src="/files/Tf4ssLhFYta2Jl8OOomU" alt=""><figcaption></figcaption></figure>

### **5. Exceptions**

Please refer to the [Harmony Batch System Cleanse System Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

### **6. Report**

Please refer to the [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

### **7. History**

Please refer to the [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mastersoftgroup.com/harmony-suite/user-guides/version-3.0.0/email-and-phone-validation/email-validation-using-harmony-batch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
