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!!!
Solved! Go to Solution.
Hi @hasilp89,
You could create the folder when you create the file.
You could refer to screenshot below to create the flow:
The expression in the Compose as below:
formatDateTime(utcNow(),'yyyyMMdd')
The flow would run successfully as below:
Best regards,
Alice
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
Hi @hasilp89,
You could create the folder when you create the file.
You could refer to screenshot below to create the flow:
The expression in the Compose as below:
formatDateTime(utcNow(),'yyyyMMdd')
The flow would run successfully as below:
Best regards,
Alice
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?
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:
Best regards,
Alice
User | Count |
---|---|
39 | |
37 | |
19 | |
14 | |
12 |
User | Count |
---|---|
27 | |
19 | |
19 | |
13 | |
13 |