Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `-UserAssignedManagedIdentityAzureResourceId` and `-UserAssignedManagedIdentityClientId` as alternatives to `-UserAssignedManagedIdentityObjectId` for `Connect-PnPOnline -ManagedIdentity` to provide an user managed identity to authenticate with. [#2813](https://github.com/pnp/powershell/pull/2813)
- Added clearer error message when connecting using an expired client secret and trying to execute a command.[#2828](https://github.com/pnp/powershell/pull/2828)
- Added `Undo-PnPFileCheckedOut` which allows a checked out file to discard its changes and revert to the last checked in version. [#2837](https://github.com/pnp/powershell/pull/2837)
- Added support for specifying the `-ContentUrl` configuration in `Add-PnPTeamsTab` cmdlet when trying to add a Planner as a tab in Teams channel.

### Changed

Expand Down
2 changes: 2 additions & 0 deletions MIGRATE-1.0-to-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Using PnP PowerShell in Azure functions ? You might be required to change the Pn

## Changes to output type

- When using `Add-PnPTeamsTab` cmdlet, if you specify the `-Type SharePointPageAndList`, then `-WebSiteUrl` is mandatory.
- When using `Add-PnPTeamsTab` cmdlet, if you specify the `-Type Planner`, then `-ContentUrl` is mandatory.
- The output type of `Get-PnPAzureADGroupOwner` has changed to `PnP.PowerShell.Commands.Model.Microsoft365User`
- The output type of `Get-PnPAzureADGroupMember` has changed to `PnP.PowerShell.Commands.Model.Microsoft365User`
- The output type of `Get-PnPAzureADGroup` has changed to `PnP.PowerShell.Commands.Model.Graph.Group`
Expand Down
5 changes: 4 additions & 1 deletion src/Commands/Teams/AddTeamsTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class AddTeamsTab : PnPGraphCmdlet, IDynamicParameters
private DocumentLibraryParameters documentLibraryParameters;
private SharePointPageAndListParameters sharePointPageAndListParameters;
private CustomParameters customParameters;

public object GetDynamicParameters()
{
switch (Type)
Expand All @@ -43,14 +44,15 @@ public object GetDynamicParameters()
return officeFileParameters;
}
case TeamTabType.DocumentLibrary:
case TeamTabType.Planner:
case TeamTabType.WebSite:
{
documentLibraryParameters = new DocumentLibraryParameters();
return documentLibraryParameters;
}
case TeamTabType.SharePointPageAndList:
{
sharePointPageAndListParameters= new SharePointPageAndListParameters();
sharePointPageAndListParameters = new SharePointPageAndListParameters();
return sharePointPageAndListParameters;
}
case TeamTabType.Custom:
Expand Down Expand Up @@ -90,6 +92,7 @@ protected override void ExecuteCmdlet()
break;
}
case TeamTabType.DocumentLibrary:
case TeamTabType.Planner:
case TeamTabType.WebSite:
{
EnsureDynamicParameters(documentLibraryParameters);
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/Utilities/TeamsUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,8 @@ public static async Task<TeamTab> AddTabAsync(PnPConnection connection, string a
case TeamTabType.Planner:
{
tab.TeamsAppId = "com.microsoft.teamspace.tab.planner";
tab.Configuration = new TeamTabConfiguration();
tab.Configuration.ContentUrl = contentUrl;
break;
}
case TeamTabType.MicrosoftStream:
Expand Down