Hi,
I'm having trouble trying to create a custom document type inside a library from a Canvas App (in this case, the custom doc. type is a Document Set).
I'm trying with patch like:
Patch('libraryName', {
'Content type': {
Id: "0x0120D52000122E02AFA3FA904F8B1226EDDC75829D09008A45DAB2BE418549A69FAE20AE822442",
Name: "doc. type name"
},
//rest of metadata
})
However, I get an obscure error telling me: "invalid argument type. expecting Record, but of a different schema"
Which schema? I can't see any documentation related to this. The closest I've come is to this article:
https://docs.microsoft.com/en-us/sharepoint/dev/schema/contenttype-element-contenttype
Any ideas?