Skip to content

[New Parameters to Existing Commandlet] - Added new parameters to Like and Unlike the page#3788

Merged
gautamdsheth merged 8 commits intopnp:devfrom
NishkalankBezawada:Page-Like&Unlike
Mar 1, 2024
Merged

[New Parameters to Existing Commandlet] - Added new parameters to Like and Unlike the page#3788
gautamdsheth merged 8 commits intopnp:devfrom
NishkalankBezawada:Page-Like&Unlike

Conversation

@NishkalankBezawada
Copy link
Collaborator

@NishkalankBezawada NishkalankBezawada commented Feb 24, 2024

Type

  • Bug Fix
  • New Feature
  • Sample

What is in this Pull Request ?

Added new parameters as -Like which will like and unlike the page respectively.

Example for Like

Set-PnPPage -Identity "MyPage.aspx" -Like

Likes the page

Example for Unlike

Set-PnPPage -Identity "MyPage.aspx" -Like:$false

Unlikes the page

Parameters

-Like

Likes the page

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Thanks,
Nishkalank Bezawada

@gautamdsheth gautamdsheth merged commit 56775c8 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.

3 participants