This is an implementation of a new method for a ms_item object using the
do_operation method directly. The intent is to add a list_versions method
back to the Microsoft365R package which may include changes to the
functionality and output of this function.
Arguments
- ...
Arguments passed on to
get_sp_itempathA SharePoint file URL or the relative path to a file located in a SharePoint drive. If input is a relative path, the string should not include the drive name. If input is a shared file URL, the text "Shared " is removed from the start of the SharePoint drive name by default. If file is a document URL, the
default_drive_nameargument is used as thedrive_nameand theitem_idis extracted from the URL.item_idA SharePoint item ID passed to the
itemidparameter of theget_itemmethod forms_driveobjects.item_urlA SharePoint item URL used to parse the item ID, drive name, and site URL.
drive_name,drive_idSharePoint drive name or ID.
driveA
ms_driveobject. If drive is supplied,drive_name,site_url, and any additional parameters passed to...are ignored.propertiesIf
TRUE, use theget_item_propertiesmethod and return item properties instead of the item.site_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.
callThe 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.
- sp_item
SharePoint item to get versions for. Additional parameters passed to
...are ignored if sp_item is supplied.- as_data_frame
If
TRUE, return a data frame of versions. IfFALSE, return a list.