Allow publishing of content type hub content types via CSOM
You cannot currently use CSOM to publish content types in a content type hub in O365. Right now you must imitate the page post back to do it.
Thanks for your feedback! Although we appreciate your time and effort to give us this feedback, it’s not something we’re planning to do right now. We are targeting our API efforts on the Graph API side and due to internal prioritize are not planning to allocate resources to new CSOM capabilities.
We are also working on new model for the content type management, which is not aligned with the classic content type hub design which should be soon available.
We do apologize the delay around getting final conclusion on this submission
8 commentsComments are closed
Any update on this???
Jim Duncan commented
This is still not possible (other than w/ IE Automation which is not a great idea) and still something we desperately need.
Christian Nesmark commented
Will this issue be addressed while working on https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/11221509-overview-of-applied-content-types ? (It doesn't really matter if it's CSOM or REST, as long as it's a reliable way of publishing content types programmatically.)
Matt Williams commented
Can't believe this isn't something we can't do yet. We have so many published content types that are trivial to remotely create but a pain to publish/republish.
Gabriel Smoljár commented
It may not be the best way, but you can use IE automation as a COM object to publish content types in SharePoint Online - http://www.constellationsolutions.com/how-to/publish-content-types-powershell-sharepoint-online/
Jussi Palo commented
Currently you can publish and republish Content Types from CTHUB using server side PowerShell on on-premises SP, but there is no way of doing the same programmatically in SharePoint Online.
Please consider adding this as we run into this request every now and then. It's also one of the last manual steps still left in our application installation we hope to do programmatically one day.
I have not been able to find an equivalent function in CSOM to automate content type publishing like the way we can do it with server OM ContentTypePublisher class. Please add this feature to CSOM.