Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
318 stars 46 forks source link

Obtaining a file URL #195

Closed reed-klein closed 2 months ago

reed-klein commented 10 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 9 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.

reed-klein commented 2 months ago

That works! Thanks so much!