Using SPServices 2014.1 to create a new docset (my custom contenttype) in a library.
updates: "<Batch OnError='Continue' >" +
"<Method ID='1' Cmd='New'>" +
"<Field Name='ContentTypeId'>0x0120D52...9559ABA1</Field>" +
"<Field Name='FSObjType'>1</Field>" +
"<Field Name='ProgId'>Sharepoint.DocumentSet</Field>" +
"<Field Name='BaseName'>" + name + "</Field>" +
"<Field Name='Title'>" + name + "</Field>" +
"</Batch>" , ....
The code is working (I've shortened the ContentTypeId, but it is correct in my code.) The new docset is created in my library. The addition of the
makes it actually look like a docset and show the docset home page when I view the contents.
But there are two things that don't seem right and lead me to think that it may look like a docset it isn't really.
First is that when I query the ProgId of the docsets it returns a blank. If I go to the library and create a new docset with the UI that value gets filled in, but for ones created with SPServices it doesn't get filled in. Even though I'm including it in the
The second thing I notice is that when I sort my library -- either in the UI or when retrieving the contents with GetListItems -- the ones created with the UI are sorted together, even though the ID numbers should have them mixed in.
I've googled a lot and that is how I found the ProgId and FSObjType fields. But I'm at a loss for how to proceed. Anybody?