Hi Ivan,
Once you've got latest, you should notice that the Document class has some additional properties:
FileContents
FileExtension
Set the file contents to the content of the file you are uploading (it's a bytearray) and then set the extension to the proper file extension (e.g. "pdf" for pdf files). At that point, you should be able to save the document using your importmetadata call
as if it were any other attached document.
If you are uploading a large number of documents this way, sometimes the SOAP call will be so large that it will time out your HTTP request. If that's the case, then we recommend that you upload the agenda without documents, then use the resulting keymap
to add the documents one at a time to the proper agenda item. This will also allow you to implement a progress bar in your application, which is nice to have for large exports to give feedback to the user.
Please let me know if you have any questions or would like me or a member of my time to review your code.
Thanks!