> For the complete documentation index, see [llms.txt](https://docs.dataexport.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataexport.io/kb/reports/custom-fields/calculated-fields/add-metafields-to-your-report.md).

# Add Metafields to your report

How to **add Metafields** to your reports?

1. Add **Order Id**, **Product Id**, or **Customer Id** fields based on your requirement
2. **Go** to Columns>**Add** Custom Columns>**Calculated Columns**>**Add** Calculated field name & **Enter the function**
3. For adding order meta field use&#x20;

```
rp_meta_fields_by_key([Order ID],test_1)
```

{% hint style="info" %}
**NOTE:** Change the 'test\_1' key to your assigned key in the shop
{% endhint %}

Change the order id to product id or customer id if you would like to add product meta fields or customer meta fields.&#x20;

Watch the video(below) to see it in live:

{% embed url="<https://www.youtube.com/watch?v=pqKOMO_AhYs>" %}


---

# 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:

```
GET https://docs.dataexport.io/kb/reports/custom-fields/calculated-fields/add-metafields-to-your-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.
