> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft 365 Email Execute Stored Procedure Configuration

> Execute a stored procedure in Microsoft 365 Email from an Arc message in the flow.

The Execute Stored Procedures action treats data coming into the Microsoft 365 Email connector as
input for stored procedures. The connector executes the stored procedure that you choose, then
passes the result down the flow (if applicable).

Follow these steps to configure a stored procedure:

<ol><li>Select a stored procedure from the drop-down menu. The available stored procedures depend on the connector and cannot be customized from CData Arc.
![Select stored procedure](https://docs.arc.cdata.com/26.4/images/dbsa_esp_select.png)
You can see the input and output parameters for the stored procedure, as well as any return values (if applicable).</li>
<li>Click **Test Execute Stored Procedure** to see what the structure of the input XML should look like.
![ESP test](https://docs.arc.cdata.com/26.4/images/dbsa_esp_test.png)</li>
<li>Complete the **Input** parameters and click **Test** to see what output will be generated. When you are satisfied with the test results, you can click **Save Sample Data** to make the data accessible to other connectors.
![ESP sample data](https://docs.arc.cdata.com/26.4/images/dbsa_esp_sample.png)</li></ol>

You can connect the Microsoft 365 Email connector to an XML Map connector. The results of the Execute
Stored Procedure appear as inputs under the **Source** tree.

![ESP XML map](https://docs.arc.cdata.com/26.4/images/dbsa_esp_xmlmap.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.