How i can get an id of attached docuement?

Hi,

When a user attached a document, automatically the file data will be registred into database with an unique id, so how i can retrieve this unique id?

Many thanks!!.

apiAccessor.getProcessAPI().getLastDocument(processInstanceId, "mainDoc").getId();

from http://documentation.bonitasoft.com/documents-0

also see

http://documentation.bonitasoft.com/handling-documents-0

regards
Seán

PS: If this reply answers your question, please mark as resolved.

Thanks Sean!!

really helped me !

Do you know , if is possible to move the attached file to some other path?

Thanks again!!

See

http://community.bonitasoft.com/questions-and-answers/how-i-can-move-file-has-been-attached-widget

Also please mark this question as resolved (Click the tick next to my answer), as it has, the other question will fix your other issue.

regards
Seán