Hello! I'm trying to understand how content types work and what are its limitations. I need to have the possibility to change the content type of an item depending on certain conditions, and can't figure out how to do it!!
The closest I tried to come up with is this:
if (changeContentTypeRequired)
{
newFile.Item[
"Content Type"] = baseFolder.ContentTypeOrder[2];newFile.Item.Update();
}
How do I change the content type of an item from code