Get Items From a Document Library

Retrieves all items within a given SharePoint document library using the Microsoft Graph API.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

get some items from the document library [whose [condition]]

Retrieves all items within a given SharePoint document library using the Microsoft Graph API. It can optionally filter based on a given condition.

Base Syntax

get some items from the document library

  • What does it do? This is the base syntax for the procedure.

  • Where does it go? This phrase should be written on a new line.

  • Is it required? ✅ Yes — This part of the phrase is required.

  • Does it require input data? ✅ Yes — The document library from which to retrieve items must be specified for the document library.

Filter Condition Syntax

whose [condition]

  • What does it do? This is an optional clause used to specify a condition for filtering.

  • Where does it go? If used, this clause immediately follows the get some items from the document library phrase on the same line.

  • Is it required? 🌟 No — This clause is optional in the syntax.

  • Does it require input data? ✅ Yes — This clause requires a condition (a filter expression) to be specified.

Examples

1. Example 1

get site from sharepoint whose name is "Human Resources"
get some site's document libraries

Last updated

Was this helpful?