This integration lets an agent identify tables inside a SharePoint-hosted Excel file, search for specific rows, and read, update or write new information into those tables — best for structured data such as spreadsheets.
Integration type: Agent
Required permissions (scopes): Files.ReadWrite.All, Sites.Read.All — admin consent required. See the Microsoft Graph permissions reference for details.
Limitations: the integration cannot access any file other than the one specified, and cannot interact with data that isn't stored in a table.
For how installation, consent, and token refresh work for this integration, see Microsoft 365 Integrations: Authentication & Access on the SharePoint Library Integration page.
If the file lives in your SharePoint, an admin will need to approve the integration's app in Azure so that people can authorise it.
If your data is just rows and columns, Excel doesn't yet treat it as a table.
Once formatted, the Table Design tab appears whenever you click a cell inside the table, confirming Excel recognises it.
Every table has two parts to be aware of:
description to Ticket Description for clarity.Table1) in the Table Name box with something clear and unique, like Tickets2025 or Orders_July.Table names must be unique within the file.
Example prompt skeleton:
* You are a ticket assistant. Help users get their ticket information by asking them their address and confirming the postcode. Always get the connected tables for reference before querying.
* Never discuss the table schema with the user.
* Never ask for permission to fix/update your failed tool calls.
* Always be concise and don't list too much data.
* You can check what tables you have access to and the schemas associated with them. If you want to search for a specific row, pass the search term and the columns you wish to search for the term in.
* Use "xxxx" table when provided xxx, xx, check the information provided matches.
Information retrieval:
* Use "xxxxxx spreadsheet" when provided surname or address, check the information provided matches within "xxxxx spreadsheet".
* Use the "xxxxx" spreadsheet if asked "When is work due to start?" Look in the spreadsheet, column "Entry Date W/C".
* Use "xxxxx report" if asked "xxxxx?". Look in the "xxxx report" spreadsheet and confirm dates for xxxx.
Based on the information given by the user, the agent looks for the requested details. If there isn't a 100% match, it looks for information with at least a 75% match:
Can Arnie help build or troubleshoot SharePoint table prompts? Potentially, but it needs enough context — an understanding of the table structure and the integration mapping. A screenshot of the integration setup and the table structure will help.
Why should categories be standardised? The SharePoint table search works like a filter, passing a value into a specific column and looking for matching rows. If the column value is "Policies and rules" but the agent searches for "Pets", the filter may not match. Standardising the table with clear categories, and telling the agent exactly which category values it's allowed to use, avoids this. For example: first identify the query type, then map it to one of the approved category values, then search using only that value.
| Caller asks | Agent should map to "Category" |
|---|---|
| "Can I bring my dog?" | Policies and rules |
| "What time can I check in?" | Check-in and check-out |
| "Can I add another person?" | Booking management |
The agent doesn't know the answer before using the tool — it only knows the question and the available category list. It picks the best category, searches SharePoint, then uses the returned answer.
What if one category contains multiple possible answers? That's fine. For example, "Booking management" might cover changing a booking, adding extras, adding an extra person, and payment questions — the agent retrieves the relevant rows for that category and picks the closest match to the caller's question. Test carefully to make sure a category isn't returning too much irrelevant information.
Why not rely on the original "Question" column? It isn't standardised — the same intent can be phrased many different ways ("dog policy", "dogs", "pets", "bringing dogs", "are dogs allowed?"), which makes exact matching difficult. A "New category" column groups similar questions into cleaner categories, giving the agent fewer, more reliable options.
Why is the agent slow when using SharePoint tables? It may be making multiple tool calls: checking which tables are connected, trying a search with an incorrect value, failing to get an exact match, retrying with fuzzy matching, then returning a lower-confidence result. This can add 10 seconds or more.
How can the lookup be made faster? Reduce failed searches and fuzzy matching by telling the agent exactly which table and columns to use, providing the file ID and table ID where useful, and keeping the list of valid category values small, standardised and explicit in the prompt. The aim is for the agent to send the correct search values on the first attempt.
What is fuzzy matching? It's when the system retries with a looser match after an exact search fails — for example searching "dog policy" against a table that contains "dogs". It can help, but slows the call down and may return lower-confidence results; the goal is to avoid needing it at all through exact categories.
How can you check what the agent actually searched for? Use the tool logs — they show which SharePoint tool was called, what values were sent, whether the correct filters were used, what came back, whether fuzzy matching was used, and the match score. Multiple SharePoint calls in a row usually mean the first search failed and the agent retried.
How many categories should there be? Fewer is better — a smaller, standardised list (around 10) is much easier for the agent to map to than a hundred question variations.
Should the prompt describe what each category means? Not necessarily at first — test with a simple list of valid categories, since the agent can usually map natural-language queries to the right one. If it still gets confused, add a short explanation beside each category, for example:
| Category | Covers |
|---|---|
| Booking management | changes, extras, extra guests |
| Policies and rules | dogs, smoking, house rules |
| Check-in and check-out | arrival, departure, access times |