function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DarrenDarren 

createable updateable and empty fields

The Document object has a field called Type. Both createable and updateable properties of the field are false, and nor is there a default value, so how are you supposed to set this?

 

If I manually add a document it get set sensibly but there appears no way to do this via the WS API, what�s that all about?

 

benjasikbenjasik
It's set to the value after the last "." in the filename

So, for test.doc it's "doc", for test.wsdl, it's "wsdl"

I'll make sure we update the docs to make this more clear.

Thanks for pointing this out.
benjasikbenjasik
So if you do this via the UI, load a doc named "test.doc", the name is test, type is doc.

Do this via the API, name is "test.doc", type is "doc".

This is a bug I'll file