Insert document in two entities

Hello I have these two entities that are configured as 'file', like this. On the newedit page of the 'document' I have the widget to insert the file. after click on save i call a microflow and crate new object of my entity DocUpdate. But I'm not being able to save the file in the DocUpdate entity. how can I make the document be saved in both entities? I really need to save in both entities because the Docupdate entity will have to have the old documents.   best regards  
1 answers

You need the Community Commons Java Action DuplicateFileDocument