From c7e3ad505b9eba664f63e6fbaa311c24effff8b1 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Fri, 20 Jan 2023 00:26:23 +0100 Subject: [PATCH 1/2] Added EnsureProperties to ensure the Includes parameter is used --- CHANGELOG.md | 1 + src/Commands/Files/GetFolder.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f8f68c8..8247a87fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed issue with non-existing ItemProxy cmdlet aliases being registered - Fixed issue with `-TranslationLanguageCode` failures in `Add-PnPPage` and `Set-PnpPage` cmdlets. [#2634](https://github.com/pnp/powershell/pull/2634) - Fixed issue with `Export-PnPUserInfo` and `Remove-PnPUserInfo` cmdlets not working due to issue with parameter validation. [#2688](https://github.com/pnp/powershell/pull/2688) +- Fixed issue with `Get-PnPFolder` ignoring `-Includes` parameter when passing in a specific list through `-List` ### Contributors diff --git a/src/Commands/Files/GetFolder.cs b/src/Commands/Files/GetFolder.cs index 414612ece..a45d3ba5f 100644 --- a/src/Commands/Files/GetFolder.cs +++ b/src/Commands/Files/GetFolder.cs @@ -44,6 +44,7 @@ protected override void ExecuteCmdlet() foreach(ListItem listItem in listItems) { var folder = listItem.Folder; + folder.EnsureProperties(RetrievalExpressions); folders.Add(folder); } From 44b0719b026f7f664d1f2bd4c301da7493a788ac Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Fri, 20 Jan 2023 02:03:29 +0100 Subject: [PATCH 2/2] Added PR reference --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8247a87fb..6a09f5c3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,7 +53,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed issue with non-existing ItemProxy cmdlet aliases being registered - Fixed issue with `-TranslationLanguageCode` failures in `Add-PnPPage` and `Set-PnpPage` cmdlets. [#2634](https://github.com/pnp/powershell/pull/2634) - Fixed issue with `Export-PnPUserInfo` and `Remove-PnPUserInfo` cmdlets not working due to issue with parameter validation. [#2688](https://github.com/pnp/powershell/pull/2688) -- Fixed issue with `Get-PnPFolder` ignoring `-Includes` parameter when passing in a specific list through `-List` +- Fixed issue with `Get-PnPFolder` ignoring `-Includes` parameter when passing in a specific list through `-List` [#2735](https://github.com/pnp/powershell/pull/2735) ### Contributors