Hi,
Details of what I am trying to achieve:
Currently, I have automation retrieving a list of data & adding it into a workbook, as the functionality of that automation isn't smart enough to only give me only new data (it will pull the full list every day) I need to add a check before adding the data to a "final workbook" so that duplications are avoided.
I thought the logic would allow me to only add rows to the new table based on the date being within the last 48 hours - but this doesn't seem to be so simple.
Error message: ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['Date']' is of type 'String'. The result must be a valid array.
expression in the condition =
Hello @RMillichamp ,
there should be only one "Apply to each" loop, represented by the "value" got from the "List rows present in a table" action.
So, you should remove the "Apply to each" loop and maintain the "Apply to each 2" loop.
If I have answered your question, please mark my post as Solved.
If you like my response, please give it a Thumbs Up.
BR,
Marco
An alternative, @RMillichamp, would be to stop using an excel sheet to contain the data and create a SharePoint/Microsoft List to contain it.
This could then offer both a more apt place for the data contained within, have its own built in automations, then also allow you to more easily fire off Power Automate flows upon new or changed data. 🙂
User | Count |
---|---|
100 | |
37 | |
26 | |
23 | |
16 |
User | Count |
---|---|
132 | |
52 | |
48 | |
36 | |
24 |