execute_fetchxml
Execute FetchXML queries against Dataverse to handle complex reporting and analytical tasks, using aggregates, linked entities, and grouping beyond OData's capabilities.
Instructions
Execute a FetchXML query against Dataverse. FetchXML supports aggregate functions, linked entities, and grouping that cannot be expressed in OData. Use this for complex reporting or analytical queries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tableName": "<tableName>",
"fetchXml": "<fetchXml>"
},
"name": "execute_fetchxml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetchXml | Yes | FetchXML query. Example: <fetch top='10'><entity name='account'><attribute name='name'/></entity></fetch> | |
| nextLink | No | Pagination cursor from a previous execute_fetchxml response. | |
| tableName | Yes | Logical (schema) name of the Dataverse table, e.g. 'account' or 'crb69_myentity' |