Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Check if a column cell(field) is blank when an item is created or modified: Switch case Problem

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I am having trouble with this, first I figured out you need to use a switch case to check a specific column so it doesnt send my email when any of my other simliar flows get triggered:

 

1. But this has limitations it only alows an equals funtion: and doesnt allow expersions to check for null values(my blank cell)? 

 

2. I am also just trying to check if a columns field, which shows dates(MM/DD/YYYY)  is past a week from our current time, I have all the logic done, just trying to figure out the same problem with this switch case...where I cant specify if it equal a certain date because they are all different.

 

- Should I make conditions within the switch case? and if so what do I put in the switch case equals to?

 

Is there any way for this to work?

  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    Re: Check if a column cell(field) is blank when an item is created or modified: Switch case Problem

    Hi @  mmkrapez,

     

     

    For your first Switch case problem:

    The Switch case allows an equals funtion and doesn't allow expersions to check for null values as you said, if you would like to check for null value,you could add a Condition to achieve your needs.

     

    I have made a test on my side,you could refer to screenshot below to create the flow:

    Capture.PNG

     

    The expression in the Condition as below:

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

     

    You could refer to link below to learn more about the workflow definition language:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    For your second Switch case problem:

    The Switch case allows the equals funtion,if you would like to check if a data is past a week from current time,You could add a Condition to achieve your needs.

     

    I have made a test on my side,you could refer to screenshot below to create the flow:

    Capture.PNG

     

     

    Please let me know if your problem could be solved.

     

    Regards,
    Alice Zhang

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow