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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add row to a table and...
Power Automate
Unanswered

Add row to a table and update row for initial email and email with reply/fwd instead I am getting No row was found with Id

(0) ShareShare
ReportReport
Posted on by

Trying to create a flow that takes new incoming email and add it to an Excel table. The flow for 'add email to a table' works. That scenario is not sufficient because there will be Reply and Fwd to the email. So I have to find a way to create an update flow. I created a separate flow to "Update a Row" and I used expression to remove "Re:" and "Fwd" so that It can update the row in the table. It works. The problem is I have the 'Add row to a table" and that runs in the background and will keep adding a row, regardless that the 'update row' is doing as expected.

 

I created a new flow and used "Apply to each" @{array(triggerOutputs()?['body'])}. Then the next step is to Get Row and I set the Key Column 'Subject' and Key Value is @{triggerOutputs()?['body/subject']}. The Subject has to be the key for update an add. If the email is a reply/response, then it will update the row in the table that has the subject. If it's an initial (new) email, then it will add it. The flow is failing on the Get Row and I can see why because it does not find the Id that has the subject, for example subject is Test Email. 

 

How do I resolve this? I have done so many variations and this is the last and I'm out of steam and not able to find any examples that talks about how to add an initial email to an excel table and update the excel table when there is a reply or fwd of the email. I need and appreciate all help.

 

Screenshot 2023-11-15 102622.png
Screenshot 2023-11-15 103031.png
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Please try:

    vbofengmsft_0-1700100353752.png

     

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-bofeng-msft

    I have tried this sample but it does nothing.

    I don't see that it'll update row when the email is a reply or a fwd, and I don't see that it will bypass update row and add the initial email to the table.

    I have tried using Converation id as a key for the update row but update row will not work if it's an initial email and there is not a matching conversation id.

    The requirements for the flow is:

    1. If initial email then 'Add row to a table'

    2. If not an initial email, then bypass 'Add row to a table' and go to Update row

    3. If email is a Reply or Fwd, then update the row .

    4. For the Update row, I have been testing with using 'Subject' as the key. I use an expression that remove 'Re:' and 'Fwd' from the subject, so that update row will find the initial email subject (without any Re: or Fwd:) and then it will know to update ONLY that row in the table.

     

    I have created at least 20 different flows and none work as expected. Either I'm getting add a table occurring twice and update row doing what it's expected in the flow. So, now I'm trying a different method which is to use SharePoint List, Create Item and Get item ... still the same issue.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard