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! We’re reviewing your suggestion.
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.