Get Sites
Retrieves SharePoint sites accessible via 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.
Examples
1. Retrieve accessible sites from SharePoint
get sites from sharepoint
process each site as follows
say the site's name
2. Retrieve a single site by name
get sites from sharepoint whose name is "Human Resources"
Using a Single SharePoint Site
Even if you're getting just one site, SharePoint returns a set of matching results. So after this line:
get sites from sharepoint whose name is "Human Resources"
You'll need to add a line to specify a single site from the set of matching results:
use the first site as the site
Last updated
Was this helpful?