How to attach a document generated by Document Template

Hello, I'm using the Document Template to generate a PDF File and I want to on click  Button to automatically attach the generated File, but i can't figure out how to do it. I tried to do the following but it doesn't work. Any help with this would be greatly appreciated. Thanks, Ahmed
1 answers

Hi, thanks for your comment, I found the problem because an attached file is created by microflow, it should stick to changes not to create a new microflow