How to pass attachment from one entity to another?

Hello, I have “MyFile” entity with generalization from the ”file” entity, so the user can upload attachments and store them with “MyFiile” entity objects. I need to pass this attachment file to the. “MyFile_2” entity via a microflow. How can I do it? I tried to pass the “MyFile” entity to the microflow, but there I can access only a few attributes like. “name”, “size”, but I can’t access the attribute where the file is stored.  
1 answers

Import the community commons module and use the action duplicatefiledocument for this.

This allows you to copy the file from one entity to another and afterwards you could delete te source file if needed.