1

My goal is to set a list item's Content Type to "Page Layout" and under "Associated Content Type" settings, Set "Content Type Group" to "Page Layout Content Types" and "Content Type Name" to "Article Page" for Office 365 SharePoint.

I am trying to accomplish this using CSOM and so far I was able to set Content Type to "Page Layout" but not the Associated Content Types.

enter image description here

  • Are you trying to do it all at once? If you change the content type of an item you may have to get a fresh reference to it to be able to access the unique fields of the new content type. – Dylan Cristy Aug 19 '15 at 21:00
  • How many ever steps it takes. I only care that this is complete. – Afroz Aug 19 '15 at 21:28
1

For those who is still looking for the answer, it's here: Here.

The value must be in the following format:

contentTypeAssociativeID = String.Format(";#{0};#{1};#", contentType.Name, contentType.StringId);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.