# ETL metadata injection

The ETL Metadata Injection step inserts data from multiple sources into another transformation at runtime. This insertion reduces the need to call repetitive tasks each time a different input source is used.

In PDI, you can create a transformation to use as a template for your repetitive tasks. This transformation is known as the template transformation. The template transformation is a child transformation that is reused by the ETL Metadata Injection step with the metadata created from various input sources. You will create another transformation to prepare what common values you want to use as metadata and inject these selected values through the ETL Metadata Injection step into your template transformation, as shown in the following diagram:

![ETL Metadata Injection Process](/files/CFpRxn5ujvzuSWKlAopu)

For example, you might have a simple transformation to load transaction data values from a supplier, filter specific values, and output them to a file. If you have more than one supplier, you would need to run this simple transformation for each supplier. Yet, with metadata injection, you can expand this simple repetitive transformation by inserting metadata from another transformation that contains the ETL Metadata Injection step. The ETL Metadata Injection step coordinates the data values from the various inputs through the metadata you define. This process reduces the need for you to adjust and run the repetitive transformation for each specific input. See the [Example](/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/etl-metadata-injection/example-etl-metadata-injection-step.md) section for more details on the example.

The following basic procedure is recommended for using this step to inject metadata:

1. Optimize your data for injection, such as preparing folder structures and inputs.
2. Develop transformations for the following task:
   * The repetitive process (the template transformation)
   * Metadata injection through the ETL Metadata Injection step
   * Handling of multiple inputs (as needed)

The metadata is injected into the template transformation through any step that supports metadata injection. See [Steps supporting metadata injection](/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/etl-metadata-injection/steps-supporting-metadata-injection.md) for which steps support metadata injection.


---

# 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.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/etl-metadata-injection.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.
