Hi all. Is there a way to look at part of (or full) filename of attachment for new emails and save only if it matches a certain string?
Solved! Go to Solution.
Hi @navaidm
Whilst this isn't a direct solution it does cover checking the file name for part of the file name. In this example the file extension.
In the same way I have targeted file types, you could put a full or part file name and it should do the trick.
Please read through and then set about looking for attachments with your desired part name or full name and I am sure you will get success.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
Hi @navaidm
Whilst this isn't a direct solution it does cover checking the file name for part of the file name. In this example the file extension.
In the same way I have targeted file types, you could put a full or part file name and it should do the trick.
Please read through and then set about looking for attachments with your desired part name or full name and I am sure you will get success.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
@navaidm :
Can you provide an example or a rule you would use to make a decision as to whether to save a file?
Scott
@ScottShearer In first read, I think this will definitely solve my problem but let me apply the solution and get back to you.
@ScottShearer I created a simple flowjust to test the logic.Ran into tow issues
1)It only looks at Inbox and not subfolders of inbox.
2) Flow runs as "succesful" but condition is always false
@AlanPs1 I replied to scots message but forgot to reply to you. Please look at my post in reponse to scot. I tried your solution but it seems to run into a glitch.
Clarification on first issue. It runs only in dedicated folder . Is there a way to check all folders .
Hi @navaidm
The trigger "When an email arrives" only works on inbox, not a subfolder.
I had a similar conversation recently in this post. Messgaes 5 & 6.
I did mention this alternative to Semirxbih:
"What you could do, is trigger when the email arrives in the inbox and use Flow to move the email to a subfolder. This would require disabling the method you use currently to move the email" to the subfolder but this should work as long as email arrives in inbox.
So I don't belive there is a way to check all folders with a trigger at the time of writing, just when they arrive in inbox only. Happy to be proven wrong though if you or another can manage to get it working. It would be a great help.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
@AlanPs1 Tnx for the clarification on folder / subfolder issue.
Any ideas on issue 2. What is it that I am doing wrong here? Why is the condition always false and no files that meet the criteria are saved.
@AlanPs1 Your solution finally worked. Turns out that condition "contains" is case sensitive. I will do some research to check if unction like "lower" to change attcahment file name to lower case for comparision with given string can be used. May be you can guide me on that 🙂
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
71 | |
26 | |
16 | |
16 | |
15 |
User | Count |
---|---|
145 | |
45 | |
44 | |
33 | |
30 |