DocumentDB.Contents

DocumentDB.Contents is a Power Query M function that returns a table of Azure Cosmos DB databases, providing optional database and query specification.

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

Syntax

DocumentDB.Contents(
   url as text,
   optional database as nullable text,
   optional collection as nullable text,
   optional options as nullable record,
) as table

Description

Returns a table of Azure Cosmos DB databases at url. If database is specified, a table of collections will be returned instead. Additionally, if the field Query is specified in the options record the results of the query being executed on either the specified database and/or collection will be returned.

Other functions related to DocumentDB.Contents are:

BI Gorilla Youtube Channel

Last update: August 17, 2023 | Contribute » | Contributors: Rick de Groot
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.