Get SharePoint site
BetaReads data
Reads one SharePoint site by its address or id, or the tenant's root site.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Host name | text |
| Path | The site's path after the host name. Leave the host name and path empty for the tenant's root site. |
| Site id | Instead of a path: the id a site read answered — host name, site GUID and web GUID, comma-separated. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
hostname | text |
path | text |
siteId | text |
Output
| Field | Type |
|---|---|
idSite id | string |
webUrlAddress in SharePoint | string |
site | object |
site.displayName | string |
Sample output, and the expression for each field
- id"contoso.sharepoint.com,1,2"
- site
- displayName"Marketing"
- id"contoso.sharepoint.com,1,2"
- webUrl"https://contoso.sharepoint.com/sites/marketing"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"hostname": "",
"path": "",
"siteId": ""
},
"label": "Get SharePoint site",
"type": "graph.getSite",
"version": 1
}