Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 6 tasks
MatthiasAbt-SVA opened this issue Jan 6, 2025 · 0 comments
Open
1 of 6 tasks

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

MatthiasAbt-SVA opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@MatthiasAbt-SVA
Copy link

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
@MatthiasAbt-SVA MatthiasAbt-SVA added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant