Skip to content

Get-PnPContentType Format-List #431

Answered by LeonArmston
ingepepe asked this question in Q&A
Discussion options

You must be logged in to vote

CSOM (underlying api behind the most of the PnP cmdlets) by design rather than returning every property back only returns a subset of properties for Content Type i.e. Name, id etc. This is different from the on premise SharePoint PowerShell world where all properties would be returned.

If you want to retrieve any further properties you need to know the name of the property (can be found with Get-Member) and then explicitly request it using Get-PnPProperty

Run the following command piping Get-PnPContentType into the Get-Member cmdlet which will then give you a list of properties and methods that are available.

Get-PnPContentType | Get-Member

Identify the property that you want to retrieve…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ingepepe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #429 on March 12, 2021 20:54.