Hi,
Currently I have a solution to what I am trying to do, but it is quite clunky when it comes to adding or changing templates to my flow. I want to see if there's a cleaner way of doing what I've set up.
Currently I have a PowerApps that has a gallery that allows the user to select which document they want to generate. By selecting a document, my flow gets triggered, with PowerApps feeding information that will be used in the flow including the document name using a FlowName.Run() command.
e.g.
FlowName.Run(
ClientInfoGallery.Selected.CustomerID,
ClientInfoGallery.Selected.FName,
ClientInfoGallery.Selected.LName
)
The actual flow then uses a PowerApps connector where I manually type in each field name that will be passed through and then using a Switch I have a case for every single document we've got. This becomes a very tedious process each time we have a new document we'd like to generate or if we've added a new field to the document. With us now having 16 documents, the flow itself is very bloated with 16 cases running horizontally.
Is there a cleaner way to handle assigning which document gets generated and having the Rich Text Controls in the document be filled out by the associated variable fed from PowerApps?
Appreciate the help!

