Skip to content

Instantly share code, notes, and snippets.

@VenkateshKadiri66
Last active October 13, 2017 10:54
Show Gist options
  • Select an option

  • Save VenkateshKadiri66/8b7951e854feb77d5e5085cec78c5dfc to your computer and use it in GitHub Desktop.

Select an option

Save VenkateshKadiri66/8b7951e854feb77d5e5085cec78c5dfc to your computer and use it in GitHub Desktop.
Column(Field) references in Content Types are not updated when site columns are updated. CType needs to be updated speparatley and optionally change should be propagated to the lists. Check this link http://paulryan.com.au/2013/ct-field-props/ to know why CTypes are not updatd when site columns are updated.
$Web= Get-SPWeb "root web url"
$pageCT = $web.ContentTypes["CType name"]
$field = $pageCT.FieldLinks["Column"]
$field.Title = "New Display Name"
$pageCT.Update($true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment