Create attachments in SharePoint when email arrives
Use case – we wanted to retrieve attachment when new email arrives in outlook and create same file in SharePoint
Let see how we can achieve this!
Step 1 – Flow triggers on when a new email arrives trigger from Outlook connection.
![When new email srrives (VB)
Recipient email addresses separated by semicolons (If any match, the
CC recipient email addresses separated by semicolons (If any match,
To or CC recipient email öddresses separated by semico'ors (If any
Sender email addresses separated by semicolons (If any match, the ti
String to fu in the nbjEt
Onty with
Hide opt&s A](https://www.cloudfronts.com/wp-content/uploads/2021/08/image-8.png)
Step 2 – Retrieve attachments and Create file in SharePoint.
Add step create file from SharePoint connection.
![Create fle](https://www.cloudfronts.com/wp-content/uploads/2021/08/image-8.png)
In Create file, Add site address, Folder path, File name, File Content.
Here file Content is the Attachment content from Trigger and File Name should be Attachment name.
![Create 「는
• Folder Psth
83 11 15000그크AE크070F](https://www.cloudfronts.com/wp-content/uploads/2021/08/image-7.png)
Save the flow and try.
Hope this helps!