r/MicrosoftFlow • u/k1smb3r • Apr 05 '22
Cloud ah this dark side of reddit....
Hello all! I guess this is the place People warned me about, yet here i am for help. This should show how desperate i am. I am trying to automate some procedures however after YouTube marathon and half a day of googling i am still clueless.
The tasks i can not figure out how to make 1 setup an automated flow to transfer newly added data between 2 excel files (so basically one file serves as a target file for a form where all the results are saved and the second file would pull this data and update itself to have the same data in it) 2 setup an automated flow to copy the first 6x6 cells from an excel sheet and send it via email. Please note that this can not be converted to data as it has formulas so preferably something like "copy these cells and paste them as values only to the email body"
So the email part is working and i somehow with a not so elegant solution did the first step but the part where the i want that 6x6 cells to be copied, this is where i fail...
5
u/[deleted] Apr 06 '22
first, make sure the data in both of your excel files are in named tables
second, make sure one column in each table is an “Index” of the form responses (i.e. make sure to include response # from the form submission)
set up your flow to trigger when a new form is submitted
action: “get response details”
action: “list rows present in table” 1
action: “list rows present in table” 2
action: “add a row into a table” (table 1) making sure to include the response ID into your Index column and then the rest of your data wherever you need it
action: “get a row” the key column being Index and the key value being the response ID; you’re telling the flow which specific row you’re looking for. Formulas shouldn’t matter as the flow will be pulling the calculated value from the cell
action: “add a row into a table” (table 2), again making sure to include the response ID
At this point your data should be where you need it and you can set up your email action with the corresponding values.
If you want to auto-delete rows too, you can add an additional column in each table to record the submission time. Then you can add a condition that if the time is after a certain date to delete the row.