cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robban
Level: Power Up

Save attachment that starts with xxxx from a specific user to Onedrive

Hi,

 

I'm new on this so please bare with me... I have searched the forum but haven't been able to solve my problem.

 

I'm getting emails every day from "Jane", the email is without subject but with an attachment called "Timereport xx-xx-xx" where the xx-xx-xx is a date so that will change every day.

 

I want ta have this report saved in a specific Onedrive folder automatically.

 

So if I have been unclear above Smiley Happy I want to:

When an email arrives from Jane I want to save all attachments where the attachmentname starts with Timereport to a specific folder in Onedrive.

 

Thanks!

4 REPLIES 4
Super User
Super User

Re: Save attachment that starts with xxxx from a specific user to Onedrive

Hi @Robban the following should get you to where you want to be. My trigger is when an email arrives, however I've included the From email address in that trigger.

 

Condition 1: If the email subject starts with Timereport

 

If Yes - Get each attachment from the email

Condition 2: Does the attachment name start with Timereport

If yes, Create file in OneDrive using the Attachment Name and the Body output from "Get Attachment"

 

Timereport.PNG





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

Robban
Level: Power Up

Re: Save attachment that starts with xxxx from a specific user to Onedrive

Hi @MattWeston365, thanks for a quick answer. 

 

The email subject is normally empty so I can't "sort out" on that. Do you have any other suggestion?

 

Thanks,

Robert

Super User
Super User

Re: Save attachment that starts with xxxx from a specific user to Onedrive

Hi @Robban  that's absolutely fine, we can just change that first condition. Rather than it looking at the subject, just change it to: Has Attachment is equal to true.

 

As long as you've populated the "From" field in the trigger (select Show advanced options) then you should be cooking on gas.





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

Highlighted
Robban
Level: Power Up

Re: Save attachment that starts with xxxx from a specific user to Onedrive

Hi @MattWeston365 , thanks for checking back. 

 

No, it did not solve my problem, I'm probably doing something wrong somewhere Smiley Embarassed. All this is not that clear for me yet... I will see if I can make a screenshot on the settings I have right now.

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: 333 members 4,088 guests
Please welcome our newest community members: