Hi all!
I need to find a way to create document stores and to upload
file on them (also assigning the right permissions to specific
team users).
Is there a way to do this using XML-HTTP API?
Even if DocumentStore type is listed into import-mapping.xml file:
[...]
<map class="org.aspcfs.modules.documents.base.DocumentStore" id="documentStore">
[...]
</map>
[...]
It seems this type is not (yet ?!) supported by the XML-HTTP API,
because if i try to insert data using this code (snippet):
[...]
crm.setAutoCommit(false);
DataRecord docStore = new DataRecord();
docStore.setName("documentStore");
docStore.setAction(DataRecord.INSERT);
docStore.addField("title", bean.getTitle());
docStore.addField("shortDescription", bean.getShortDescription());
docStore.addField("enteredBy", 0);
docStore.addField("modifiedBy", 0);
crm.save(docStore);
boolean result = crm.commit();
System.out.println(crm.getLastResponse());
[...]
the result returned is "Unsupported object specified".
Any hints?
Many thanks in advance
Roberto