Skip to content

Comments

Fix Set-PnPView -Aggregations parameter not showing aggregations in SPO#4868

Merged
gautamdsheth merged 2 commits intopnp:devfrom
jackpoz:fixes/SetViewAggregations
Apr 20, 2025
Merged

Fix Set-PnPView -Aggregations parameter not showing aggregations in SPO#4868
gautamdsheth merged 2 commits intopnp:devfrom
jackpoz:fixes/SetViewAggregations

Conversation

@jackpoz
Copy link
Contributor

@jackpoz jackpoz commented Apr 20, 2025

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #4706

What is in this Pull Request ?

Fix Set-PnPView -Aggregations parameter not showing aggregations in SPO.

Use the script below to test the PR:

Set-PnPView -List "Test simple list" -Identity "All Items" -Aggregations "<FieldRef Name='LinkTitle' Type='COUNT'/>"

Before the PR, the aggregation bar is visible but without any value:
Screenshot 2025-04-20 164100

After the PR, "Count: 4" is visible:
Screenshot 2025-04-20 160435

Passing an empty string as -Aggregation removes the aggregation bar:
image

jackpoz and others added 2 commits April 20, 2025 17:11
Fix Set-PnPView -Aggregations parameter not showing aggregations in SPO
@gautamdsheth
Copy link
Collaborator

Awesome stuff @jackpoz , much appreciated the fix for this issue.

@gautamdsheth gautamdsheth merged commit ca5912f into pnp:dev Apr 20, 2025
2 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.

[BUG] Set-PnPView -Aggrations: Count # is not displayed after activating an aggregation

2 participants