Skip to content

[New Command] - Get-PnPPageLikedByInformation#3781

Merged
gautamdsheth merged 5 commits intopnp:devfrom
NishkalankBezawada:New-Command-GetLikedByInfo
Mar 1, 2024
Merged

[New Command] - Get-PnPPageLikedByInformation#3781
gautamdsheth merged 5 commits intopnp:devfrom
NishkalankBezawada:New-Command-GetLikedByInfo

Conversation

@NishkalankBezawada
Copy link
Collaborator

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|johnny.bravo@contosso.onmicrosoft.com
CreationDate : 2024-02-16 14:49:55

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

Thanks,
Nishkalank Bezawada

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