Skip to content

Updating Content Type property EditFormClientSideComponentId does not work #2158

Answered by React365-Chris
EA12 asked this question in Q&A
Discussion options

You must be logged in to vote

This worked for me. Good Luck!

#Login
Connect-PnPOnline -Url http://MyServer/sites/MySiteCollection -Credentials $creds

Get Context

$clientContext = Get-PnPContext

Give target content type name over here

$targetContentType = Get-PnPContentType -Identity "Content Type Title" -List "Your List"

Set target content type read only

$targetContentType.EditFormClientSideComponentId = '8edc4f83-3e73-4d31-9828-b67b7b786667'

Update(UpdateChildren – bool), this value indicates whether the children content type(inheriting from this Content Type) needs to be updated. 0 = False, 1 = True

$targetContentType.Update(0)

$clientContext.ExecuteQuery()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@EA12
Comment options

@carletto75
Comment options

Answer selected by EA12
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