In 2.5 I have created a form with a button to generate a document. The button is attached to a microflow to create the document. In the action "Generate document" is asked to select "File" (pull down menu is empty). What is needed ?
In the microflow that is invoked by the button, you need the following:
An activity that creates a System.FileDocument
A Generate document activity in which you use the created FileDocument and the Document Template that you have defined in the modeler
If wanted: a Download File activity that downloads the created document or (when possible) shows the document in the browser
When you now use the button, the document will be created.
Frans Verschoor (FraternIT)
Thanks !! This works perfect.
I created a custom button with a microflow on a form holding different documents. In the microflow:
Create object on the custom table holding the documents and having a generalization on FileDocument
Change object to fill the required fields and to relate it to the parent table
Generate document function to create a word document