How i can get an id of attached docuement?

1
0
-1

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!!.

1 answer

1
0
-1
This one is the BEST answer!
  1. 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.

Comments

Submitted by claz08 on Tue, 07/19/2016 - 16:00

Thanks Sean!!

really helped me !

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

Thanks again!!

Submitted by Sean McP on Tue, 07/19/2016 - 22:16

See
http://community.bonitasoft.com/questions-and-answers/how-i-can-move-fil...

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

Notifications