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

Help Setting Up a Flow

Hello - I want to set up a Flow but don't know where to start.

I want to have a flow that automatically saves the attachments of a daily email to a folder in sharepoint.

 

1. Identify the daily email by sender/subject.

2. create a folder based on the date.

3. save all attachments in the identified email into the folder.

 

Repeat this every day so i don't have to do it manually!!!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Help Setting Up a Flow

Hi @hasilp89,

 

You could create the folder when you create the file.

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

Capture.PNG

 

The expression in the Compose as below:

formatDateTime(utcNow(),'yyyyMMdd')

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Help Setting Up a Flow

@hasilp89:

 

Unfortunately, Flow does not yet provide an action that allows you to create SharePoint folders. You might want to suggest this in Flow ideas if it has not already been suggested.

 

As an alternative, I believe you could create a folder by calling a SharePoint web service via the "Send an HTTP request to SharePoint" action.  

 

The other requirements that you have mentioned can be done with Flow without issue.

 

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
Community Support Team
Community Support Team

Re: Help Setting Up a Flow

Hi @hasilp89,

 

You could create the folder when you create the file.

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

Capture.PNG

 

The expression in the Compose as below:

formatDateTime(utcNow(),'yyyyMMdd')

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

View solution in original post

hasilp89
Level: Power Up

Re: Help Setting Up a Flow

Alice you are amazing. Truly amazing.

This worked great for me.

One thing I did want to change was having the folder name that we created (currently -> formatdatetime(utcnow(),'MM-dd-yy') show the PRIOR days date (the email is received on 09-04-18 but i want the new folder to show 09-03-18). I saw some function in there that would let you subtract a certain amount of time but I was unsure how to use it. Any advice?

Community Support Team
Community Support Team

Re: Help Setting Up a Flow

Hi @hasilp89,

 

The expression should as below:

formatDateTime(addDays(utcNow(),-1),'MM-dd-yy')

You could refer to link below to learn more about the workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#d...

 

Best regards,

Alice

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,817)