How do I save individual files when running a bot

I have created a bot to read my excel file that has all my invoice data and create my invoices in word. However, I can do this successfully when I run the bot, it only ever saves my last invoice. The invoices are set up to save as a PDF.
What do I need to do?

Hello @simondaveyconsulting ,

Can you show your flow, if is not contain something confidential?
If you have an excel file, you should read it, than use For each row in datatable.

In that activity, you should have almost at the end a Save to pdf activity.

I hope it helps.

Vasile.

Here is the first part of the flow.

And the final part, all steps in between are constructed the same.

Are you creating a unique filename each time to save the new file?

No. That’s where my challenge is. I’m not 100% sure how to do it.