HTML pages in SharePoint went generally available last month, and now we have HTML list views. With HTML list views, you are working within the list itself. You open Copilot and ask it to create a new HTML list view, prompt the features you want, and you have a new dashboard-type view. Check the format view code box and what you have is not the normal JSON column formatting, but a whole HTML document.
So the question is, are HTML pages and HTML List views the same thing?
The Short Answer
The short answer is no. They have the same engine but slightly different rules. An HTML list view runs in the same sandboxed viewer as an HTML page, with the same data manifest and the same one way hand-off of data into the iframe. The differences are where the HTML is stored and which data sources it is allowed to use.
An HTML page can read a list, a CSV file or an Excel workbook. An HTML list view can only read lists. Point a view at an Excel file and you get an error saying the view overlay is list-only.
A second list works fine as a live source, as long as Copilot writes it into the manifest instead of copying the values into the code. It tried hardcoding values from a second list into a script to start with.
What I Tested
I tested the two HTML features using two lists and an Excel file in a document library.
I asked Copilot to build the dashboard view from the list in a single prompt, then asked for follow-up changes. After each change I copied the view's format JSON out and read the code. I checked the browser developer tools for the iframe and the network calls, then repeated the Excel test on an HTML page.
What Happened
1. The HTML Lives in the View's Format JSON, Not in a File
Open Format current view, switch to advanced mode, and the JSON has the usual $schema line followed by a new property: viewOverlayFormatter. Inside it is customHtml, a string holding a complete HTML document, plus a title.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"viewOverlayFormatter": {
"customHtml": "<!DOCTYPE html><html>...</html>",
"title": "Site Owners"
}
}
This is not row or column formatting. Nothing in it is declarative. It is about 50 KB of HTML, CSS and JavaScript that replaces how the list is drawn, with tabs, a search box and KPI cards (or whatever you chose to request) built by the code itself.
2. It Is the Same Engine as HTML Pages
The document starts with the same data manifest that HTML pages use, and the script reads its rows from window.__LD_RESULTS__:
<script type="application/json" class="ka-livedata-manifest">
[{"kind":"list","spItemUrl":"list:current","currentList":true}]
</script>
I opened the browser developer tools on the view and found the sandboxed iframe, and the RenderListDataAsStream call made by the parent page, not by the HTML. So the sandbox rules apply here as well. The code inside has no network access, and the data is handed in before it runs.
3. list:current Ties the View to Its Own List
On a page the manifest names a specific list by URL and ID. In a view, Copilot wrote list:current, which means whichever list the view belongs to. The column names are another matter. The generated code is full of internal names like field_2 and field_7, so it is still tied to the schema it was written against.
4. A Second List Works, but Only if It Is in the Manifest
I added a small directory list with names and phone numbers and asked Copilot to show the phone number beside each owner. It worked, and the numbers matched. But when I read the code, the manifest still had a single entry. Copilot had copied the values into a lookup object:
var phoneByName = {"alex morgan":"555-0101","sam rivera":"555-0102"};
Change a number in the directory and nothing changes in the view. I then asked for the directory list as a live second data source, not hard-coded values. This time the manifest had two entries:
[{"kind":"list","spItemUrl":"list:current","currentList":true},
{"kind":"list",
"spItemUrl":"list:https://contoso.sharepoint.com/sites/TestSite/<list-guid>",
"webUrl":"https://contoso.sharepoint.com/sites/TestSite",
"listId":"<list-guid>",
"label":"OwnersDirectory"}]
I changed a phone number in the directory, reloaded, and the view showed the new value straight away. Same lesson as with HTML pages: the wording of your request decides whether Copilot copies the data or links it. Check the manifest, to be certain.
5. Excel in a View Does Not Work
Next I asked for an Excel workbook as a second source. The view showed the above error banner.
Copilot's reply was to apologise for saying it was done before verifying it would render, and to suggest putting the data in a SharePoint list instead.
I then tried the same kind of workbook on an HTML page, stored in the Documents library. It worked. So this is a real difference between the two features, and the error text suggests it is deliberate.
6. The Generated Code Has Quirks
A few things I noticed reading the code Copilot wrote:
- A baked-in snapshot. The file contained a copy of every row, used when the live load fails. If it kicks in, users see stale data and nothing tells them. It also means the data is readable in the view definition.
- Initially, my search box lost focus after every letter. The code rebuilds the whole page on each keystroke, including the box you are typing in. One follow-up prompt to Copilot fixed it.
- Hard-coded names and paths. Internal column names, and the path in the Edit link, are written into the code. Copy the view to a different list and it will need regenerating.
HTML Pages vs HTML List Views
| HTML page | HTML list view | |
|---|---|---|
| Where the HTML lives | A .html file in Site Pages | customHtml inside the view's format JSON |
| Current list as a source | Names a list by URL and ID | list:current |
| Another list | Yes | Yes (tested) |
| Excel workbook | Yes (tested, Documents library) | No, "list-only" error |
| Sandboxed iframe, data pushed in by the parent page | Yes | Yes (tested) |
The Workflow That Worked
- Ask Copilot on the list to build a dashboard view, and say you want it live.
- Open Format current view in advanced mode and save a copy of the JSON. Every Copilot change rewrites the whole thing, so keep a copy of each version that works.
- Read the manifest. One entry with
list:currentis what you expect for a single list. - For a second list, ask explicitly: "use this list as a live second data source in the manifest, not hard-coded values".
- Test it. Change a value in the second list and reload the view. If nothing changes, the values were copied.
- If you need an Excel or CSV file, build an HTML page instead, or load the data into a list.
- Don't trust Copilot saying it's done. Read the manifest and look at the view.
What I Did Not Test
- Whether the view's own filter and sort are applied to the rows the HTML receives, or whether it gets the whole list.
- The 100,000-row limit and the "every column is fetched" behaviour, in a view.
- What a user without access to the second list sees.
- A second list on a different site.
Common Questions
Is an HTML list view just JSON formatting with more code?
No. JSON formatting is declarative and runs in SharePoint's own renderer. An HTML list view is a full HTML document that runs in a sandboxed iframe and replaces how the list is drawn.
Can an HTML list view read an Excel file?
Not in my testing. It fails with an error saying the view overlay is list-only. An HTML page can read Excel files.
Does the view update when the list changes?
The data is fetched when the view loads, so a reload shows the change. It is a snapshot taken at load time, not a live connection.
Why did Copilot say it was done when the view was broken?
It reported success before checking that the view rendered, and admitted it afterwards. Always check the result yourself.
Can I copy the view to another list?
I didn't test it. The list:current source should follow the view, but the hard-coded column names won't unless the other list has the same columns.