How to generate a dynamic document with multiple sections based on user input?
Hi Team! I have a requirement and would like to know if anyone has faced a similar situation or has suggestions on how to approach it.
Scenario:
I have an interface where the user can dynamically add N sections. Each section has a unique ID (provided by the user) and a fixed set of fields (the same for all sections), but with different data.
Example:
- The user adds 2 sections: ID 1 and ID 2.
- Each section contains the same fields (e.g., name, date, value), but with different values.
- At the end, I need to generate a dynamic PDF document that reflects exactly those sections and their data.
Requirement:
The generated document should include one section per user entry, with the corresponding data mapped correctly. If the user adds 5 sections, the document should have 5 blocks with the respective data.
My question:
What would be the best approach to generate this kind of dynamic document in Appian?
- Is it possible to do this using Document Generation?
- Do I need to create a template with dynamic placeholders?
- Any tips on how to structure the data or the template to support this behavior?
Thanks in advance for any insights or experiences you can share!
