cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
LynnS
Level: Powered On

Create an item in a SharePoint List from email with and without an attachment

HI- I am trying to do the following to a SharePoint list using flow. 

  • If an email is sent to a shared email, create a list item.
  • If the email contains an attachment, save the attachment in the list as well.

I have been able to save the attachment using "add attachement".  I can also get an email to save without an attachment.  I have only been able to do this with 2 different flows.  One to handle emaisl with attachments and one to handle emails without attachmetns.  The issue I could use some help with is this:  the flow that does not handle attachments actually creates a list item for all emails reguardless if it contains an attachment or not.  How can I get the flow to only create an item if the email does not have an attachment?

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Create an item in a SharePoint List from email with and without an attachment

Hi @LynnS,

 

I have made a test on my side and I afraid that there is no any way to achieve your two requirement that you mentioned in one single flow in microsoft flow currently.

 

The trigger "When a new email arrives" would only be triggered when you set the arrived email would has attachment or don't has attachment, so the trigger could only achieve one of your requirements in microsoft flow currently.

 

If you would like this trigger "When a new email arrives" could be triggered no metter whether it has attachment, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

 

Best regards,

Alice

LynnS
Level: Powered On

Re: Create an item in a SharePoint List from email with and without an attachment

HI  Alice @v-yuazh-msft

One work flow would be ideal but two would work since I have it set that way now.  The issue with how I have it now is the flow that handles emails without an attachment will create a list item regardless if the item has an attachement or not.  So the email is duplicated since the other flow also creates a list item for emails with the attachment.  Is there a way to keep the non-attachment flow from duplicating emails with attachments?  I had thought it would be by setting attachments to "no". 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 199 members 4,616 guests
Please welcome our newest community members: