# How to store contract information with an Account in a report

The [Metadata](/data-pipelines/metadata.md) feature in Exivity can be leveraged to store relevant information about contracts (like Contract ID, Customer ID, contact details, etc.) together with [Accounts](/reports/accounts.md) in report summaries.\
\
First, we need to create a Metadata definition, then associate it to one or more [Accounts](/reports/accounts.md).\
\
These are the steps to achieve this:

1. Navigate to the **Data Pipelines** > **Metadata** menu and click **Create Metadata.**
2. Choose a meaningful name for your Metadata definition.
3. By clicking the **+** button, you can add fields. Add your prefered fields with their corresponding type. For example:<br>

![Adding a Metadata definition for contract information](/files/Q9Dd4KXycdEe0yixuHLi)

4\. Click **Create** to save your Metadata.<br>

5\. Now, we need to associate this Metadata definition with a report. Go to **Data Pipelines** > **Reports** and choose your prefered report. Click on the *Configuration* tab and you will notice that for each *Key Column* you have the option to add Metadata. In this example, we associated the "Contract Information" Metadata with the Customer level Account:

![Associating Metadata with a report](/files/XmJupmdCD9mrr4mMx7gk)

6\. Click **Update** to apply your changes.

7\. To fill in the contract details you just created, go to the **Accounts** menu, select **Overview** and from the list of Accounts, you will notice that at the Account level associated with Metadata, you can add values:

![Adding Metadata values to an Account](/files/oBagMGOFr8lw5ugiE7HG)

8\. Click **Update** to save.\
\
Finally, the contract information for the configured Account(s) will be visible in the report.


---

# 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://olddocs.exivity.io/getting-started/how-to-guides/how-to-store-contract-information-with-an-account-in-a-report.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.
