Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added -Identity parameter to the Get-PnPFileSharingLink extending its flexibility #4093

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

KoenZomers
Copy link
Collaborator

@KoenZomers KoenZomers commented Jul 12, 2024

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

  • Added -Identity parameter to the Get-PnPFileSharingLink cmdlet allowing for the retrieval of sharing links based on the file's unique identifier, file instance, listitem instance, or server relative path and supporting retrieval of sharing links for multiple files, such as all in a document library
  • Changed -FileUrl on Get-PnPFileSharingLink to become obsolete. Please switch to using -Identity instead, passing in the same value

Samples of what it allows doing now:

By listitem:

image

By file:

image

By all files in a folder:

image

By ServerRelativeUrl:

image

By GUID:

image

@gautamdsheth gautamdsheth merged commit a25ffc7 into pnp:dev Jul 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants