List content type - cannot update SchemaXml property #1418
Unanswered
tomasz-sintel
asked this question in
Q&A
Replies: 1 comment
-
@tomasz-sintel : I just cross checked the SharePoint code base and the ContentType.SchemaXml property is not settable, so it's probably just ignored. I'll update PnP Core SDK to reflect that. I did notice that the ContentType.SchemaXmlWithResourceTokens property is settable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to update a list content type. Primarily I wanted to do this because of missing properties in the ContentType model, but I can't even get it to work with the simplest property. Please help me out.
My code:
At the moment, the GetUpdatedContentTypeSchemaXml only modifies the Description attribute in the SchemaXml, nothing more. I am comparing the property value before and after the setter.
It does not matter if I update the list at the end or not.
I do have sufficient permissions on the list, I can update the CT through normal properties (see commented line).
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions