I have a scheduled flow that runs once a week and creates Word documents from a template. I have the premium Word connector so I can convert each of the Word documents to PDF. I want to loop through the library and convert multiple documents to PDF. Is this something I can do with the Word action? It looks like it's forcing me to choose a specific file and convert that file. I have tried populating variables with the file path and file name and adding those into the action, but it errors out.
Is it possible to use Apply to Each and loop through the Word documents to convert each of them to PDF? Or do I have to use a Switch and do them all separately?
If I have to use a Switch and do them all separately, how can I build the flow dynamically so it can count the number of documents in the library and convert them? The number will change weekly.
We would prefer not to use OneDrive, but if that's the only way to make this work, so be it. Any suggestions are welcome.