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.
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.

Report
All responses (
Answers (