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

Help using Flow to update row in Excel

Hi,

 

I have set up flow with Excel to send an email when the 'Status' of a cell is set to "Open".

 

I have also set up a column called 'Receipt' to automatically update with the text "Email Sent" as soon as an email is sent for that particular row. This is to avoid resending an email for the same row repeatedly.

 

The problem for me is when I'm using the "update a row" action, it only seems to update the first row with the text "Email Sent" and not any subsequent rows. I am not sure how to fix this, can someone please help?

 

See flow, link below:
https://imgur.com/a/05IUInV

 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

OK, I got it!

 

The problem was the "Key Value" was same for all the rows and so it was only updating the first row. I now changed the Key Column to "#" which contains unique serial numbers and Key Value to dynamic '#' and it works.

View solution in original post

12 REPLIES 12
Community Support Team
Community Support Team

Re: Help using Flow to update row in Excel

Hi @mowgli512,

 

I afraid that your flow run failed because you fill in the string "Email Sent" in the "Key Value" field in the "Update a row" action, however, the "Receipt" column values are not always "Email Sent".

 

Please enter the "Receipt" dynamic content of the "List rows present in a table" action in the "Key Value" field.

Capture.PNG

 

 

Best regards,

Alice

mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

Hi Alice,

 

Just tried it, but it seems to only update "Email Sent" in the first row. When the check is running on the second row for instance, the first row cell gets updated instead of the second row cell.

 

https://imgur.com/a/TehzWzi

Community Support Team
Community Support Team

Re: Help using Flow to update row in Excel

Hi @mowgli512,

 

The Key Column couldn't be modified.

 

If you would modify the "Receipt" column, you could update the Key Column to "Status" and modify the Key Value to "Status" dynamic content on your side:

Capture.PNG 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

Tried this now, but "Email Sent" is only getting updated in the first row and not for any subsequent rows.

Community Support Team
Community Support Team

Re: Help using Flow to update row in Excel

Hi @mowgli512,

 

It works on my side.

Please share the screenshot of the configuration of your flow.

 

Best regards,

Alice

mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

There you go.

 

flow.jpg

Community Support Team
Community Support Team

Re: Help using Flow to update row in Excel

Hi @mowgli512,

 

Your flow looks with no problem,

 

Please check from the run history of your flow to see if every row has run in to the If no branch of your Condition2.

Also Please take a try to remove all condition to check if it works.

 

 

Best regards,

Alice

mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

I have checked the flow history and it shows successful – reason being it updates the cell in row 1 instead of row 2.

I have even tried removing one condition and I still have the same issue.

 

How can I get 'update row' to update a cell in the current row instead of the first row?

 

See flow history for row2 below:

Screenshot 2019-01-07 at 2.22.57 PM.png

mowgli512
Level: Powered On

Re: Help using Flow to update row in Excel

OK, I got it!

 

The problem was the "Key Value" was same for all the rows and so it was only updating the first row. I now changed the Key Column to "#" which contains unique serial numbers and Key Value to dynamic '#' and it works.

View solution in original post

BrunoTonini
Level: Power Up

Re: Help using Flow to update row in Excel

Hi mowgli512

U can share how stayed your flow ?

rele_2018
Level: Powered On

Re: Help using Flow to update row in Excel

I have created a sharepoint form where responses are saved to an excel file. However, I would like to allow respondents to come back to the form, quote the ID and provide updated responses by using Update row in excel (in microsoft flow).

 

The updated responses should get saved in the same row with that ID, but I can't figure out how to do that.

 

For e.g. the form has the following fields:

1. ID (assigned by sharepoint form)

2. Type of query

 

3. Indicate ID (if you have filled in the form previously)

4. Pls provide more details on the query

5. Have the query been resolved to your satisfaction?

 

Respondents first fill in Questions 1 and 2 and submit the form.

Responses get written to the excel file

1 month later, respondents need to update questions 4 and 5 by providing the previous ID given to them.

How do I get the responses for questions 4 and 5 updated into the same row with that ID? I know I can use sharepoint list but I am trying to avoid that as my form is much longer than this.Capture.PNG

texpatriot
Level: Power Up

Re: Help using Flow to update row in Excel

Unfortunately I could not get the solution posted to work. any ideas what I might be doing wrong? See flow here: https://imgur.com/a/xrKJl42

 

The field # currently contains unique serial numbers. I would like it to contain a timestamp of the time the flow was run after an email is sent

 

Thanks for the help!

@mowgli512 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors (Last 30 Days)
Users online (3,777)