Skip to content

[BUG] - Add-PnPContentType with Parent from ContentTypHub #4665

Open
@MatthiasAbt-SVA

Description

@MatthiasAbt-SVA

Reporting an Issue or Missing Feature

Creating a Content Type in a site Collection with Add-PnPContentType can not use parent contentTyp from Content Typ Hub. "Content typ "xyz" not found in site".

Expected behavior

When using a Parent Content Typ from Content Typ Hub in the GUI is possible, i excpected that this should also work with PnP.PowerShell

Actual behavior

Site Content Type is created with parent "item".

Steps to reproduce behavior

Create and publish an content typ from the hub (parent is item), wait a moment until it is published and then try to use this published content type as parent:
Add-PnPContentType -Connection $nCon -Name "localType" -Description "Personalmassnahme" -Group "My Group" -ParentContentType (Get-PnPContentType -Identity "FromHub")

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
2.12.0 Core
2.4.0 Desk

Which operating system/environment are you running PnP PowerShell on?

  • Windows (Editor: Visual Studio Code)
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions