SharePoint.Contents

SharePoint.Contents is a Power Query M function that returns a table containing rows for each folder and document found at a specified SharePoint site. The function returns a table with folder or file properties and content links.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

SharePoint.Contents(
   url as text,
   optional options as nullable record,
) as table

Description

Returns a table containing a row for each folder and document found at the specified SharePoint site, url. Each row contains properties of the folder or file and a link to its content. options may be specified to control the following options:

  • ApiVersion : A number (14 or 15) or the text "Auto" that specifies the SharePoint API version to use for this site. When not specified, API version 14 is used. When Auto is specified, the server version will be automatically discovered if possible, otherwise version defaults to 14. Non-English SharePoint sites require at least version 15.

Other functions related to SharePoint.Contents are:

BI Gorilla Youtube Channel

Last update: August 17, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/sharepoint-contents
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.