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 / Check sharepoint list ...
Power Automate
Answered

Check sharepoint list for empty value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need to run a flow based on if a value is empty in a sharepoint list. The value is a person so it has many properties like display name and email etc. 

 

I've tried lots of things, but nothing seems to be working correctly. 

giveMe_javascript.PNG

 

 

 

 

I've tried several things to check if the value is empty like . . .

@empty(triggerBody()?['Assigned_x0020_to'])

@empty(triggerBody()?['Assigned_x0020_to']?['Email'])

 

 

 

@empty(triggerBody()?['Assigned_x0020_to']?['Email']?['Value'])

The function in bold evaluates to true regardless of any value in that row. 

When Assigned_x0020_to.Email.Value is empty the flow returns true.

When Assigned_x0020_to.Email.Value has an email in the sharepoint list row it also returns true. Where is the debugger? How can I determine the values in the Assigned_x0020_to object. How can I select a value off of that. How can I compare one of those values to empty string?  . . .

 

 

 

 

@empty(string(triggerBody()?['Assigned_x0020_to']?['Email']))

I've tried to check if the email ends in edu but that also fails.

@not(endswith(triggerBody()?['Assigned_x0020_to']?['Email'], 'edu'))

(NOTE: The emails in the list always end in edu)

 

I've tried !contains .edu.  

@not(contains(triggerBody()?['Assigned_x0020_to']?['Email'], '.edu'))

 

I tried to check if the display name is empty

@empty(triggerBody()?['Assigned_x0020_to']?['DisplayName'])

The condition always returns true and always sends an email, even when there is a value in 'assigned to'.

 

I created a new column called assignedTo. The value is just a single string line. 

@empty(triggerBody()?['assignedTo'])

Evaluates to false whether the there is a string in that row or not. 

 

 

I just want to check if the value is empty. Please help. 

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Johnathon_S,

     

    I think there is something wrong with your formula in the screenshot that you provided. I have made a test on my side and the flow works well. My flow’s configuration as below:9.JPG

    Within the Condition, please type the following formula:

    @empty(triggerBody()?['Assigned_x0020_To']?['Email'])

    The flow works successfully as below:10.JPG

     

    Besides, please check if you have allowed multiple selections in your Person or Group column.

     

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard