web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help Setting Up a Flow
Power Automate
Answered

Help Setting Up a Flow

(0) ShareShare
ReportReport
Posted on by 3

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!!!

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @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

  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    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

  • hasilp89 Profile Picture
    3 on at

    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?

  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    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#date-and-time-functions

     

    Best regards,

    Alice

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard