I have an excel table with about 2000 rows. Only about 1530 are in use. Everytime we start a new project, we fill in a new line using a VBA script. This spreadsheet is uploaded to a sharepoint list automatically to further tie in with other workflow tools.
Uploading the entire sheet through flow takes about 30 minutes. I want to build a script that only uploads the last line (so a new project) every time the excel file is changed. This will be a lot faster.
How would I set up flow so it would only create a new item for the last row in the table that has data in it?
Can I do this using one of the settings in the List rows present in a table the Filter Query box? Or by putting an expression in the top count/skip count?
Solved! Go to Solution.
Hi @RobinV86 ,
You could get the data of the last row by the following method.
Expression:
last(body('List_rows_present_in_a_table')?['value'])
In order to facilitate the reference data, we also could to configure the following steps.
Run the Flow in the above configuration, copy the contents contained in Compose's Outputs, and paste it in Parse JSON action.
This makes it easy to use the last line of data.
Hope it helps.
Best Regards,
Hi @RobinV86 ,
You could get the data of the last row by the following method.
Expression:
last(body('List_rows_present_in_a_table')?['value'])
In order to facilitate the reference data, we also could to configure the following steps.
Run the Flow in the above configuration, copy the contents contained in Compose's Outputs, and paste it in Parse JSON action.
This makes it easy to use the last line of data.
Hope it helps.
Best Regards,
Hi @RobinV86 ,
Specific configuration process:
Best Regards,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
37 | |
34 | |
33 | |
30 |
User | Count |
---|---|
46 | |
36 | |
33 | |
25 | |
24 |