Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
308 stars 41 forks source link

Obtaining a file URL #195

Open reed-klein opened 6 months ago

reed-klein commented 6 months ago

Is it possible to include functionality for retrieving a file's SharePoint URL based on the file name? For example, $list_files() will give me the names in a folder; I could then use one or more of those names to obtain the relevant file URLs (note: this is the URL as it appears when clicking "Copy link", or "Share link" for a file in SharePoint--not the URL as it appears in the web browser's address bar).

Many thanks for all of the work on this package--it is fantastic!

hongooi73 commented 5 months ago

Do you mean a link that you would share to someone outside your team? If so, the create_share_link() method is what you're looking for.