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

Create Sharepoint item from new (only) email, not from reply

Hi all

 

I've not been able to find an answer to my question, so apologies if i thas been addressed in the past and I've missed it.

 

I have successfully created a  Flow which creates a SharePoint list item when an e-mail (any email) arrives into a shared mailbox.

However, it also creates a new item when that e-mail is actually a reply - which I don't want to happen.

 

Is it possible to separate New e-mails from replies? And no... not all reply subjects start with 're' so I can't rely on that as a filter.

 

I appreciate any thoughts you may have. Thanks,

Pete.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SCTdan
Level 8

Re: Create Sharepoint item from new (only) email, not from reply

As far as I can tell, there isn't a way to differentiate based on any message/trigger properties.  You'd have to find something else to filter on, some content in the body or something. 

Or, prior to creating the sharepoint item, check to see if it already exists (assuming everything is unique or you can otherwise properly identify it)

View solution in original post

3 REPLIES 3
SCTdan
Level 8

Re: Create Sharepoint item from new (only) email, not from reply

As far as I can tell, there isn't a way to differentiate based on any message/trigger properties.  You'd have to find something else to filter on, some content in the body or something. 

Or, prior to creating the sharepoint item, check to see if it already exists (assuming everything is unique or you can otherwise properly identify it)

View solution in original post

Community Support Team
Community Support Team

Re: Create Sharepoint item from new (only) email, not from reply

Hi @PeterSimons ,

 

I agree with @SCTdan 's solution.

You need to find something to filter on the body or subject, or check from the list items to see if the item exists now.

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
PeterSimons
Level: Powered On

Re: Create Sharepoint item from new (only) email, not from reply

Thanks for the advice. It has encouraged me to approach it slightly differently. Here's what I eventually put in place:

 

I found (through the power of Google) that each email has an 'internet header' and within it is an indicator as whether the email is a reply or not. Unfortunately, Flow doesn't seem able to read that, but Outlook Rules can. So, I'm using the Rules to redirect any new-new emails to a separate folder... Flow runs based on anything arrived in that folder, creates a SharePoint item and moves the email back into the normal inbox.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate 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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,892)