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 Apps / Passing a blank ou nul...
Power Apps
Answered

Passing a blank ou null value to Power Automate

(0) ShareShare
ReportReport
Posted on by 364 Moderator

Hello, 

I'm trying to pass a blank value to Power Automate from an empty input box to get a non-filtered list. 
When I don't try to test the value. There's no error signal in the code, but I don't get the non-filtered list. It remains empty. 

PierreCA_4-1702389304770.png

 

I've try different approaches to send an empty value, but all failed. 

PierreCA_0-1702389044155.png

 

PierreCA_1-1702389072599.png

 

PierreCA_3-1702389227043.png

 

How could it be done?




Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Have you tried making the input parameter in the call to the flow "optional" and then handling a blank input properly within the flow?

     

    Bryan

  • PierreCA Profile Picture
    364 Moderator on at

    Hello @BCLS776 (Bryan) , 

    How do you make the input optionnal when calling the flow?

    The flow is already set to handle a blank value.

  • BCLS776 Profile Picture
    8,994 Moderator on at

    You can edit it on the trigger operation in the flow:

    BCLS776_0-1702391976197.png

    Remember to save your flow, and then refresh it in the app before continuing.

     

    Bryan

     

  • PierreCA Profile Picture
    364 Moderator on at

    But when I test if the variable containing the input is empty or blank, i got an error message. How do you test the variable content? 

    PierreCA_1-1702392848053.png

     

    PierreCA_0-1702392797592.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Please change the expression in Power Automate to:

    empty(triggerBody()?['text'])

    The '?' symbol is important in Power Automate - it indicates the field may or may not exist in triggerBody()

     

    Also, the expression language used in Power Automate is different than PowerFx. Here's the reference

     

    Hope that helps,

    Bryan

  • PierreCA Profile Picture
    364 Moderator on at

    Hello @BCLS776 , 

    Your solution for the flow works. 

    But curiosily, the very same line of code in Power Apps, to call the flow has now an error? How to circumvent the problem?

    PierreCA_0-1702395705460.png

     

  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Now that the parameter is optional, it is handled a bit differently in the flow call:

    TrouverNomEntite.Run({text: inputRechercheEntite.Text})

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard