web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow that will create ...
Power Automate
Answered

Flow that will create a new Microsoft List item for a new email but update an existing List item if the email is a reply

(0) ShareShare
ReportReport
Posted on by 13

Good afternoon!

 

We are attempting to use Microsoft Lists and Power Automate to build a ticketing system for our HR support team.  I've got a flow working that will create a List item whenever a new email comes in to our shared People Support inbox.  However, replies to the same email thread create new list items as well.  What we want is if a List item already exists for a particular thread/conversation ID, it should update the description of that list item with the reply rather than create a whole new list item.  If a List item doesn't already exist for that conversation ID, it should create a new List item.  

 

See attached the working flow that creates new list items and the broken flow that is supposed to either create a new item OR update an existing item.  Hopefully someone can steer me in the right direction. 🙂

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @JBass21 

    You can achieve this by creating a rule in Outlook for shared mailbox to filter out the automatic replies by moving them to another folder. If the rule runs at the exchange server, then flow does not consider the automatic replies for trigger.

    https://nhlearningsolutions.com/blog/how-to-filter-out-automatic-replies-in-microsoft-outlook

     

  • JBass21 Profile Picture
    13 on at

    Hi Sudeep!

     

    Thank you for the response but this wouldn't update the existing List item with the reply would it? Also it's not automatic replies I'm concerned with, it's actual replies.

     

    The idea would be that our HR team would still communicate with the person sending in the email through our shared email, so we need to capture their replies in the List items/tickets.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Got it! Okay let's try this.

    Since your first flow is working, can you append the list item id to the Subject message?

    SudeepGhatakNZ_0-1715293811239.png

     

    When people reply to that email thread, simply add a logic to check if the email has a list item ID then update else create

     

  • JBass21 Profile Picture
    13 on at

    This sounds promising!  But do you happen to know what action to select to edit an email subject line?  What I found online said that there wasn't a default action but the solution I found at this site keeps giving me a Bad Request error with a JSON issue.  I think it also isn't set up to tie the specific List ID variable to the email.  It's just to insert specific text to all emails.  https://www.matthewdevaney.com/how-to-change-an-email-subject-in-power-automate/#:~:text=There%20is%20not%20any%20Power,and%20select%20the%20PATCH%20method

  • JBass21 Profile Picture
    13 on at

    Bumping this up.  Thanks!

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    I will get back to you today.

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    This is what I was suggesting. You need not change the subject, instead just email back with the same subject and body.

     

    SudeepGhatakNZ_0-1715644627102.png

     

  • JBass21 Profile Picture
    13 on at

    I'm still having to tweak some things but I think this is going to work!  Thank you so much Sudeep!  For future reference if anyone else tries to build this, I had to add a step to convert the email body to from HTML to Text.  Otherwise it copied a bunch of gibberish into the item description.

    JBass21_0-1715721323555.png

     

    New Flow.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 875

#2
Valantis Profile Picture

Valantis 817

#3
Haque Profile Picture

Haque 481

Last 30 days Overall leaderboard