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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to check if value ...
Power Automate
Answered

How to check if value is null with new condition parameters

(3) ShareShare
ReportReport
Posted on by

Before Flow was updated to allow multiple condition parameters, I could put something like the following inside a condition:

@(not(empty(items('Apply_to_each')?['PHONE'])))

How do I do this in the current paradigm?

Phone is not empty.Phone is not empty.

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,333 Super User 2025 Season 2 on at

    In the condition try adding an expression of PHONE is not equal to null. For the right hand box, click in it and go over to the right, select the Expression tab and type null and then select it to put it in the box.

    Rob
    Los Gallardos

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @RobElliott wrote:

    In the condition try adding an expression of PHONE is not equal to null. For the right hand box, click in it and go over to the right, select the Expression tab and type null and then select it to put it in the box.

    Rob
    Los Gallardos


    Thanks for your input, Rob.  I should have given a bit more context.  My data source is a group of Visual Foxpro .dbf tables which I'm accessing through a SQL linked server.  In the data, these string values return from the SQL connector as empty strings rather than null.

     

    Edit:  I've figured out how to do what I originally intended.  Using length is effective, but to me empty() is a bit cleaner and should also cover an unforseen null condition.  

    empty(items('ForEachRow')?['CELLPHONE'])

    Empty = false.png

    I've decided to handle this by checking if the length of the string is greater than zero. That is working well, but I miss the advanced mode under the conditions.

    length(items('ForEachRow')?['PHONE'])

    If Phone Exists.png

     

     

  • Community Power Platform Member Profile Picture
    on at

    Rob, I'm currently trying to resolve a similar issue.  I have condition that is checking if a variable is not NULL.  For some reason it keeps taking the "not null" track even though it's null.  I even set up a test flow that simply sets a variable to NULL, then uses a condition to check.  It keeps choosing 'not null'.  If you have any more advice I would appreciate it.  Thanks

  • Gyllentid Profile Picture
    894 on at

    Any idea of how to write expressions? Like a reference guide... I want to use the correct syntax and structure it right, but unsure of how to actually do it. 

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @shavora 

    Here is a link to the expressions reference

    A quick search on YouTube will uncover a bunch of videos on getting started with expressions.

     

     

     

  • Gyllentid Profile Picture
    894 on at

    Thanks @ScottShearer I am trying to use the reference guide. I am trying to use the concat function in realtime workflow and every time I structure it like in the reference guide, all I am getting is the actual code as a string instead of the field data I want to fetch. 

    These are examples of what I have tried in the standard value slot, I don't find another place to write the concat function in. 

    Skärmavbild 2021-10-25 kl. 10.07.21.pngSkärmavbild 2021-10-25 kl. 10.25.41.png

    As per this post (https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Auto-populate-the-Primary-Name-column-with-the-combination-of/td-p/770061), it is supposed to work to use concat in the realtime workflows.

  • Raviteja1992 Profile Picture
    23 on at

    Its working using is not equal to null

    Raviteja1992_0-1635918859657.png

     

  • fstorm Profile Picture
    8 on at

    Excellent.  Thanks Rob.

  • DeadFishEddie Profile Picture
    23 on at

    thank you

     

    empty worked for me.

     

    DeadFishEddie_0-1643209829577.png

     

     

  • ldjohnson62 Profile Picture
    5 on at

    This is what I used.  I had a Http request for a item from a list.  Then, used Parse Json to pull the fields.  AND, yes.. one of them could be null.   I tried the empty expression and always get a false reading.  Thanks RobElliott for this reply.  Now I move on down the flow.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard