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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to delete blank...
Power Automate
Answered

Unable to delete blank rows in List - Group being added as a Row Azure AD

(0) ShareShare
ReportReport
Posted on by 12

I have a flow which will be running weekly to help our users see who is part of a group of distribution lists. 

 

The issue I am having is the flow is adding all members as an item. There are groups which have been added as a member. This is causing the Title to be blank, which breaks my flow the next time I run it. 

Ethan1132_4-1688550641541.png

Ethan1132_5-1688550699039.png

 

 

 

I need to ideally get the flow to filter out any values which are blank, as we will be having multiple groups added in each group for SP Permissions.

 

Ethan1132_0-1688550473386.png

Ethan1132_1-1688550515378.png

Ethan1132_2-1688550549002.png

Ethan1132_3-1688550576602.png

 

The flow then repeats this for  other groups with the same flow steps. 

 

Categories:
I have the same question (0)
  • S-Venkadesh Profile Picture
    1,214 Super User 2026 Season 1 on at

    Hi @Ethan1132 ,

    One approach is to perform a null check when creating an item. If the mail field is null, you can assign a static value, such as "BLANK," to indicate the absence of a value.

    By doing so, 'Get Items' action will work as intended

     

    I hope this information is helpful. If it is, please consider giving a thumbs up.

     

    Best regards,

    Venkadesh Sundaramurthy

  • Ethan1132 Profile Picture
    12 on at

    I am probably doing this the wrong way, but when I try do this check I get an error with the ID number being an integer rather than an array.

    Relatively new to PA and learning as and when I come across issues.

     

     

     

    Ethan1132_0-1688554674522.png

    Ethan1132_2-1688554872820.png

     

     

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Ethan1132,

     

    After creating an item in the SharePoint list using the "Create item" action in Power Automate, the output will provide the ID value as an integer, not an array.

    Since the ID is not an array, there is no need to use a foreach loop. Instead, you can perform a null check on the ID value directly after the "Create item" action.

    Here is an updated approach:

    1. Add the "Create item" action to create the item in the SharePoint list.

    2. After the "Create item" action, add a "Condition" action to perform the null check on the ID value.

    3. In the condition, check if the ID value is not equal to null or empty. If the condition is true, proceed with the desired actions or logic. If the condition is false, handle the case accordingly (e.g., show an error message or perform an alternative action).

       

       

       

      I hope this information is helpful. If it is, please consider giving a thumbs up.

       

      Best regards,

      Venkadesh Sundaramurthy

  • Ethan1132 Profile Picture
    12 on at

    HI Venkadesh.

     

    I've tried to add this, however I am still getting an error with the ID being empty.

     

    The issue seems to be the azure ID is valid, however when it then gives it to the User profile, the account does not have an ID, because the account is actually a group. 

     

     

     

    Ethan1132_0-1688564955053.png

     

    Ethan1132_1-1688565010171.png

     

     

  • Ethan1132 Profile Picture
    12 on at

    I managed to get round this by doing two things.

     

    I created the item before hand and labeled it Blank. I then assigned the UserID at creation.

    I was then checking to see if the UserID was blank, if it was the title would stay blank 

    Ethan1132_0-1688567237894.png

    At the bottom of my flow, i then checked all items and anything with the Title "blank" was deleted 

     

    Ethan1132_1-1688567268230.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard