cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mowgli512
Frequent Visitor

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

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

14 REPLIES 14
v-yuazh-msft
Community Support
Community Support

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

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

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

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

Hi @mowgli512,

 

It works on my side.

Please share the screenshot of the configuration of your flow.

 

Best regards,

Alice

There you go.

 

flow.jpg

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

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

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

Anonymous
Not applicable

Hi mowgli512

U can share how stayed your flow ?

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

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 

VGanji
Frequent Visitor

Can you please share your solution here.

Thank you.

clement_digipos
Frequent Visitor

Same problem .....

 

secQJrP

 

No found row found but I can find this row in my preview request.....

help, please ?

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (884)