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 Apps / Passing parameter that...
Power Apps
Unanswered

Passing parameter that can be Empty to Flow

(0) ShareShare
ReportReport
Posted on by

Hello, 

My PowerApps is passing the 5 string parameters to PAutomate flow. There are 4 mandatory parameters and one optional parameter ("Crit2"), that is sometimes null - originaly empty in the datasource list. The App fails if this parametr is empty. As a workaround, I have set a null value on  "-" ,    but would need a better solution.
Is there a clean way to manage this?

Thanks in advance

blabla70_0-1680252461535.png

blabla70_0-1680263565197.png

 

 

Categories:
I have the same question (2)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @blabla70 ,

     

    Is it the App or the Flow that's failing when then the parameter is blank?

     

    If it's tha flow probably you have a better chance of getting a solution by posting it in the Power Automate Community: https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity

  • blabla70 Profile Picture
    on at

    The app is failing, so I think I am in the right community here 🙂

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @blabla70 ,
    The flow/app shouldn't fail if we pass blank value to the flow (If you will not pass any parameter, the app will fail as flow expects one parameter at that time). Please refer below screenshot:

    NandiniBhagya20_0-1680254274926.png


    The flow will fail if you are using this blank value in get item action but this can be handled with if condition inside the flow.

  • blabla70 Profile Picture
    on at

    How to condition it inside flow, can pls you elaborate?

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @blabla70 ,
    You can use length function inside expression to check if length is 0 or not. If it is 0 that means it is blank.

    NandiniBhagya20_0-1680263411188.png

     

  • blabla70 Profile Picture
    on at

    at this point the app crashed already

    blabla70_0-1680263599272.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @blabla70 ,
    Try using Coalesce function for the parameter which will be blank in some cases  (make sure to add space between double quotes) - 
    TestBlank.Run(Coalesce(TextInput3.Text," "))

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @blabla70 ,

     

    Can you please share the formula you are using to run 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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard