web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Trigger email if sharepoint list item does not exist

(0) ShareShare
ReportReport
Posted on by 25

HI,

 

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!

 

G

 

 

I have the same question (0)
  • efialttes Profile Picture
    14,756 on at
    Re: Trigger email if sharepoint list item does not exist

    Hi

    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:

    https://flow.microsoft.com/en-us/blog/email-digest-date-manipulations/

     

    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

  • DeckardREP Profile Picture
    25 on at
    Re: Trigger email if sharepoint list item does not exist

    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

     

    G

     

     

     

     

  • efialttes Profile Picture
    14,756 on at
    Re: Trigger email if sharepoint list item does not exist

    Hi

    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:

     

    @equals(length(body('Filter_array'),0)

     

    Hope this helps

  • DeckardREP Profile Picture
    25 on at
    Re: Trigger email if sharepoint list item does not exist

    Yes it did! many thanks 🙂

  • v-xida-msft Profile Picture
    on at
    Re: Trigger email if sharepoint list item does not exist

    Hi @DeckardREP,

     

    I agree with @efialttes’s thought almost, I have made a test on my side and please take a try with the following workaround:21.JPG

     

    22.JPG

     Within Condition box, click "Edit in advanced mode", type the following formula:

    @empty(body('Filter_array'))

     

    Best regards,

    Kris

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard