cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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

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
Highlighted
Super User III
Super User III

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

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

Highlighted
New Member

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?

Highlighted
Community Support
Community Support

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (9,528)