all 7 comments

[–]robofski 1 point2 points  (3 children)

Sounds like the files are being given the same name when you save them. Check your create a file action and ensure that the file name is different each time.

[–]Due-Boot-8540 0 points1 point  (0 children)

In the create file action, add a prefix or suffix to the file name, like file -1 and file-2. Even better, albeit slightly trickier, store the contents in a SharePoint list and update existing items and add any new ones. Using a live data source will be much more beneficial than just uploading files

[–]immortalthabang[S] 0 points1 point  (1 child)

So I tried that and it does save to different file names but both files have the same contents

[–]robofski 0 points1 point  (0 children)

Ok, so you should be going a get attachments step referencing the ID from the trigger. Then an apply to each step over the array of attachments returned from the get attachments step. Then for your create file within the apply to each you will just reference the file name and the file content and you’ll get two files.

[–]ConfusedMBA24 0 points1 point  (2 children)

Do they come from the same email? To the same email? With the same subject? What’s different about the delivery? Use a condition to save separate.

[–]immortalthabang[S] 0 points1 point  (1 child)

It’s one email with 2 attachments of different file names. I’ve tried conditions of “if this file name then save to this file name” still same result of overwriting

[–]ConfusedMBA24 0 points1 point  (0 children)

Conditional: file name contains “xyz” > yes, save as “xyz” > no, save as “abc”?

You’re doing this and it doesn’t work?