Store Attachment in Entity

Hello, I am trying here I created one form, and at the end of the page, we show one  Save Button. At the save button microflow I am generating a PDF of the current filled form but I am trying to save this generated PDF file in the current entity. But it was not done. so how can I do this?
1 answers

have you generalized this entity with file document ? only if the entity is of type file document you can save the pdf. 

I would suggest you to create a new file document entity and associate this new file to the Form entity. 

you can store the file document in the new entity.