RPASharePoint
Get site by path
Get site by path
Gets a SharePoint site from the given path.
Options
SharePoint account
Select the SharePoint Login or Connection action set up in the flow.
Hostname
Enter the SharePoint domain of the organization, for example company.sharepoint.com.
Site path
Enter the site name, that is, the part that comes after /sites/ in the URL. For example, for https://company.sharepoint.com/sites/TestSite, enter TestSite.
Returns
Javascript code
js
actions["action-id"].id // the ID of the site (Text)
actions["action-id"].name // the name of the site (Text)
actions["action-id"].webUrl // the URL of the site (Text)
actions["action-id"].displayName // the display name of the site (Text)
actions["action-id"].description // the description of the site (Text)
actions["action-id"].createdDateTime // the date and time the site was created (Text)
actions["action-id"].lastModifiedDateTime // the date and time the site was last modified (Text)
Field selection
- id — the ID of the site (Text)
- name — the name of the site (Text)
- webUrl — the URL of the site (Text)
- displayName — the display name of the site (Text)
- description — the description of the site (Text)
- createdDateTime — the date and time the site was created (Text)
- lastModifiedDateTime — the date and time the site was last modified (Text)
Rules and Conditions
- The SharePoint account, Hostname and Site path fields are required.
- The path entered must match an existing site.
- If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.