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

[New Command] - Get-PnPPageLikedByInformation #3781

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

NishkalankBezawada
Copy link
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

What is in this Pull Request ?

Created a new command, Get-PnPPageLikedByInformation which will return liked-by Information of a modern page.

SYNTAX

Get-PnPPageLikedByInformation -Identity <PagePipeBind> [-Connection <PnPConnection>]

DESCRIPTION

This command retrieves the LikedBy Information of a modern page.

EXAMPLES

EXAMPLE 1

Get-PnPPageLikedByInformation -Identity "MyPage.aspx"

Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site

EXAMPLE 2

Get-PnPPageLikedByInformation "MyPage"

Gets the LikedBy Information of page named 'MyPage.aspx' in the current SharePoint site

EXAMPLE 3

Get-PnPPageLikedByInformation -Identity "MyPage.aspx" -Web (Get-PnPWeb -Identity "Subsite1")

Gets the LikedBy Information of page named 'MyPage.aspx' from the subsite named 'Subsite1'

Sample Output

Name         : Johnny Bravo
Mail         :
Id           : 14
LoginName    : i:0#.f|membership|[email protected]
CreationDate : 2024-02-16 14:49:55

Name         : Nishkalank Bezawada
Mail         : SuperAdmin@contosso.onmicrosoft.com
Id           : 6
LoginName    : i:0#.f|membership|[email protected]
CreationDate : 2024-02-22 19:47:24

Thanks,
Nishkalank Bezawada

@gautamdsheth gautamdsheth merged commit a8db710 into pnp:dev Mar 1, 2024
3 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