Retrieves all lists within a given SharePoint site using the Microsoft Graph API.
To use this procedure, make sure your agent has learned the Sharepoint Book (BDK).
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
retrieve some site's lists [whose [condition]]
Retrieves all lists within a given SharePoint site using the Microsoft Graph API. It can optionally filter based on a given condition.
Base Syntax
retrieve some site's lists
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 — A SharePointSite object representing the site from which to retrieve document libraries must be specified for the site.
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 retrieve some site's lists 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 some sites from sharepoint whose name is "Human Resources"
use the above as the site
retrieve the site's lists
2. Example 2
get some sites from sharepoint whose name is "Human Resources"
use the above as the site
retrieve the site's lists whose name is "My List"