I've currently got a flow updating a simple sharepoint list from my inbox.
I get multiple jobs finished emails from automated systems, most of these arrive beteween 00:00 and 01:00 monday morning.
The initial flow looks at my inbox and creates a line item in my sharepoint list that the specific job has finished ("title", "received", "from"), (this sharepoint list is blanked at 23:59 Sunday night).
What I've been trying to do is create a second flow to send me an email when one of the expected line items in that sharepoint list is not present at1:05 on monday morning.
I've been trying various things (creating a reference sharepoint list that contains all the line items that I would expect in my updated sharepoint list and doing a compare = couldn't get this work as filtering on title, when it doesn't exist simply returns an empty array).
Any help would be gratefully received!
A possible approach is to have a daily recurrency trigger at the desired time, get all items from the list and filter them. The goal of the filter is to search the item where it is declared that the specific job has finished ("title", "received", "from").
In order to combine REcurrence Trigger, SP Get Items and Filter Array, there is an excellent example published in the Official Flow Blog:
Once filtered, I would recommend to evaluate the length of the array output with a Condition. If result is zero, it means there is not item matching the conditions of the filter
Hope this helps
many thanks for your reply.
we have tried doing something similar using View (list of items), but have repeatedly failed in being able to create a condition which correctly identifies that an element doesn't exist because the array can be empty.
How can we evaluate the length of the array output with a condition that returns true/false If result is zero?
many thanks in advance
Let's assume your array is the output of a Filter Array action Block (with its default name given by Flow editor)
In such a case you can try with the following expression:
Hope this helps
I agree with @efialttes’s thought almost, I have made a test on my side and please take a try with the following workaround:
Within Condition box, click "Edit in advanced mode", type the following formula:
Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020.
Fill out a quick form to claim your user group badge now!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Flow Community Video Gallery!