list_record_documents
Lists files in a Dataverse record's SharePoint document folder, including subfolders, to show what the Documents tab contains. Read-only; returns up to 100 recent files with metadata.
Instructions
List the files in a record's SharePoint document folder, the ones its Documents tab shows, files in subfolders included; only reads. Returns { files: [{ name, path, file_type, size_bytes, modified_on, modified_by, url }], total }: at most 100 files, most recently modified first, where path is relative to the record's folder and url is the file's SharePoint address as Dataverse gives it; when the folder holds more files, a note says so, and total gives their number when Dataverse could count them all (up to 5000). A record without a document folder the caller can see gets a message saying so instead of a list. An unknown entity set, a table with document management off, a record that does not exist or that the caller may not read, and a missing one-time admin setup for reading SharePoint documents through the Dataverse API are errors. With a folder structure based on Account or Contact, the list for an account or contact also holds the files in the folders of its related records, and the caller's access to those records is not checked. It returns no file content: download_record_document, where it is enabled, gets a file by its path. To read the record itself, use get_record.
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": {
"entity_set": "<entity_set>",
"id": "<id>"
},
"name": "list_record_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record GUID | |
| entity_set | Yes | Entity set name of the record's table (plural, e.g. 'accounts', 'leads') |