
Announcements
Hi, I need to export an email with attachments to a sharepoint list, I already have the steps shown below that do this first task, the thing is I don't need to include images that are on the email body, only the files attached (pdf, excel, etc),
In my sharepoint list I am getting those undesired images:
Is there a way to exclude them in my flow?
After this, I need to rename each of the attachments saved in my sharepoint list and save them in another folder on the same sharepoint site, what steps should I use?
Thanks
Hi @Anonymous
Thank you for posting.
According to your description, you would like to export attachments from email and attach them into according item in list. But don’t want to keep image file.
If that’s the case, we can use condition to get rid of image type file as below:
The whole flow (You just need to pay attention to the configuration in ‘apply to each’)
Once running the flow, I’m able to exclude image files.
Received email:
Flow results:
Created item:
To rename each of the attachments saved in my SharePoint list and save them in another folder on the same SharePoint site. We need to refer 'create file' action.
To save all attachments including images, we need to use 'create file' before condition. To only keep files excluding images, we can configure 'create file' after 'add attachment' action.
Hope the content above may help you.
Best regards,
Anna