updatinHi there.
I have a flow that enters data into an excel table.
I have actions to insert data into a new row, but now I need to be able to add data into the last row.
I have tried using the 'List rows present in a table' operation, but am unsure how the 'Key Value' field in the UPDATE ROW works.
I have tried last(body('List_rows_present_in_a_table')?['body/value']) but this doesn't seem to work.
Hope you can help
The excel "Update a row" action asks for a Key Column, Key Value to be defined for the update to happen.
The Key Column is the name of the column on which you want the update to happen and the Key Value is the value that is residing in the column.
Suppose I have a column called "Column1"
{"@odata.etag":"","ItemInternalId":"fe121f9b-f31f-4b9d-9b3a-cef989859836","Column1":"3"}
If I want to update the last value present in the column "Column1" then in the keyvalue I have to provide the below expression
last(body('List_rows_present_in_a_table')?['body/value'])['Column1']
This will help the system understand the current value and will update it with the new value that will be shared
Thanks for your help
That didn't seem to work.
I changed one of the column headings to 'Column1' and pasted the expression into the field as shown below.
Please see the errors.
The excel table:
My flow
The error result
The output in 'List rows present in table'
User | Count |
---|---|
25 | |
15 | |
14 | |
10 | |
9 |
User | Count |
---|---|
48 | |
29 | |
28 | |
25 | |
23 |