# Email to Case

The **EmailToCase** template allows users to configure either On-Demand Email-to-Case or standard Email-to-Case settings within Salesforce via AutoRABIT.

## Steps to Create the EmailToCase Template

1. Log in to your AutoRABIT account.
2. Navigate to the **Env. Pro.** module.
3. Click **Create New Template**.
4. Select the **Create Unsupported Metadata Template** tab.
5. Enter a **template name** and a **short description**.
6. Check the **EmailToCase** box under the **Email to Case Setting** section.
7. Click **Add**.
8. On the next screen, a **Test Case Name** is automatically generated. Click **Add** to provide custom test data. Fill in the necessary details, then click **Save**.

   ![EmailToCase Test Case Screen](/files/n7czgnYLgKIfhKuttRj6)
9. Click **Save** again to finalize and save the template.
10. After creation, you will be redirected to the **Environment Provisioning History** screen.
11. Click **Run** to execute the template in your destination org.
12. Choose the **destination org** from the dropdown and provide **email address(es)** to receive notification emails.
13. Under **Post Deployment Steps**, select the recently created test cases.
14. Visit the **View History** page for a comprehensive summary of the executed operations.


---

# 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://knowledgebase.autorabit.com/product-guides/arm-1/arm-features/environment-provisioning/unsupported-metadata-templates/email-to-case-settings/email-to-case.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.
