> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/arm/arm-features/environment-provisioning/unsupported-metadata-templates/create-lead-mapping-rules/leadmapping.md).

# LeadMapping

The **LeadMapping** template maps each of your organization's custom lead fields to one of your custom account fields.

To create this template, follow the steps below:

1. Log in to your AutoRABIT account.
2. Click on the **Env. Pro.** module.
3. Click on **Create New Template**.
4. Go to the **Create** [**Unsupported Metadata Template**](https://knowledgebase.autorabit.com/docs/unsupported-metadata-templates) tab.
5. Provide a **template name** and a **short description**.
6. Select the **LeadMapping** checkbox under **Create Lead Mapping Rules**.
7. Click **Add**.
8. On the next screen, a **Test Case Name** will appear automatically by default. To add custom test data, click **Add**.
9. Fill in the following details:
   * **Current Generator**
   * **Number of Locations**
   * **Primary Field**
   * **Product Interest**
   * **SI Code**\
     When finished, click **Save** to save this page.
10. Click **Save** again to finalize the template.
11. Upon successful creation, you'll be redirected to the [**Environment Provisioning History**](https://knowledgebase.autorabit.com/docs/environment-provisioning) screen.
12. Click the **Run** button to execute the template on your destination org.
13. Select your **destination org** from the dropdown and enter the **email address(es)** to receive notifications.
14. In the **Post Deployment Steps**, select the test cases you recently created.
15. For a detailed operation summary, visit the **View History** page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/arm/arm-features/environment-provisioning/unsupported-metadata-templates/create-lead-mapping-rules/leadmapping.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
