Last active
October 13, 2017 10:54
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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