cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
navaidm
Level: Powered On

Save specific attachment from outlook

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Save specific attachment from outlook

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.

https://www.alanps1.io/power-platform/flow/flow-excel-formats-only-save-new-email-attachments-to-sha...

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


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


9 REPLIES 9
Super User
Super User

Re: Save specific attachment from outlook

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.

https://www.alanps1.io/power-platform/flow/flow-excel-formats-only-save-new-email-attachments-to-sha...

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


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Super User
Super User

Re: Save specific attachment from outlook

@navaidm :

Can you provide an example or a rule you would use to make a decision as to whether to save a file?

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
navaidm
Level: Powered On

Re: Save specific attachment from outlook

@ScottShearer  In first read, I think this will definitely solve my problem but let me apply the solution and get back to you. 


navaidm
Level: Powered On

Re: Save specific attachment from outlook

@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

image.png

image.png

image.png

navaidm
Level: Powered On

Re: Save specific attachment from outlook

@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.

navaidm
Level: Powered On

Re: Save specific attachment from outlook

Clarification on first issue. It runs only in dedicated folder . Is there a way to check all folders .

Super User
Super User

Re: Save specific attachment from outlook

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


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


navaidm
Level: Powered On

Re: Save specific attachment from outlook

@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.

navaidm
Level: Powered On

Re: Save specific attachment from outlook

@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 :-)

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 176 members 3,856 guests
Please welcome our newest community members: