list_sp_pages() returns a list of SharePoint pages associated with a
specified SharePoint site. get_sp_page() returns a single SharePoint page.
Usage
list_sp_pages(
...,
site = NULL,
page_type = c("sitePage", "page"),
as_data_frame = TRUE,
call = caller_env()
)
get_sp_page(page_url = NULL, page_id = NULL, ..., site = NULL)Arguments
- ...
Arguments passed on to
get_sp_sitesite_urlA SharePoint site URL in the format "https://[tenant name].sharepoint.com/sites/[site name]". Any SharePoint item or document URL can also be parsed to build a site URL using the tenant and site name included in the URL.
site_name,site_idSite name or ID of the SharePoint site as an alternative to the SharePoint site URL. Exactly one of
site_url,site_name, andsite_idmust be supplied.refreshIf
TRUE, get a new site even if the existing site is cached as a local option. IfFALSE, use the cachedms_siteobject.cacheIf
TRUE, cache site to a file usingcache_sp_site().cache_fileFile name for cached drive or site. Default
NULL.overwriteIf
TRUE, replace the existing cached object named bycache_filewith the new object. IfFALSE, error if a cached file with the samecache_filename already exists.
- site
Optional
ms_siteobject to use. If not provided, the...arguments are passed toget_sp_site().- page_type
Page type to request. One of "sitePage" or "page".
- as_data_frame
If
TRUE, return a data frame with details on the SharePoint site pages. IfFALSE, return a list.- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.- page_url, page_id
SharePoint page URL or ID.