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 / If any of these data c...
Power Apps
Answered

If any of these data card values are blank...

(1) ShareShare
ReportReport
Posted on by 75
Hello friends!
I have built a Power Automate flow (Create Deployment Request from Power Apps) with a Power Apps button as a trigger.  When one clicks the button in Power Apps, the data collected throughout the Power App is pulled into a Microsoft Word template and a file is created in SharePoint.  However, when I'm clicking the button, nothing is happening (the Power Automate flow is not running).  I think this may be due to some empty form fields, which will always happen due to the user experience (i.e. if value 1 is selected from a drop down on screen 1, the app will navigate to screen 2.  If value 2 is selected, the app will navigate to screen 3, and so on).  
 
Simply, my question is this - how do I tell Power Apps to put "N/A" in place of an empty value so the flow will run?  
 
Here is what I have in the On Select property of my button: 
CreateDeploymentRequestfromPowerApps.Run(
    DataCardValue25.Selected.Value,
    DataCardValue63.Text,
    DataCardValue34.Selected.Value,
    DataCardValue46.Text,
    Label1.Text,
    DataCardValue18.Text,
    DataCardValue17.Selected.Value,
    DataCardValue28.Text,
    DataCardValue29.Text,
    DataCardValue30.Text,
    DataCardValue35.Text,
    DataCardValue41.Text,
    DataCardValue5.Text,
    DataCardValue44.Text,
    DataCardValue3.Text,
    DataCardValue2.Text,
    DataCardValue6.Text,
    DataCardValue1.Selected.Value,
    Year(DataCardValue19.SelectedDate) & "-" & Month(DataCardValue19.SelectedDate) & "-" & Day(DataCardValue19.SelectedDate),
    DataCardValue54.Text,
    DataCardValue59.Text,
    DataCardValue60.Selected.Value,
    DataCardValue55.Text,
    DataCardValue57.Text,
    DataCardValue58.Selected.Value,
    DataCardValue56.Selected.Value,
    DataCardValue7.Text,
    DataCardValue21.Text,
    DataCardValue4.Text
)
 
Or, am I missing another key reason why the flow may not be running?
 
Thanks in advance for any help!
Categories:
  • Suggested answer
    NickWarner Profile Picture
    113 on at
    You could try put default values in the datacards so they are not blank. alternatively you could for each value code an isblank check. eg:
     
    If(IsBlank(DataCardValue25.Selected.Value),"N/A",DataCardValue25.Selected.Value)
  • Suggested answer
    timl Profile Picture
    37,409 Super User 2026 Season 2 on at
    Have you modified your flow by adding new parameters since you first added it to your Power App? If so, I would remove and re-add it to your app, as I'm surprised that empty values would completely cause your flow to not run. 
     
    In answer to your question, you can call the Coalesce function to return N/A in the input value is empty or blank.
     
    flowCreateDeploymentRequestfromPowerApps.Run(
        Coalesce(DataCardValue25.Selected.Value, "N/A"),
        Coalesce(DataCardValue63.Text, "N/A"),
        Coalesce(DataCardValue34.Selected.Value, "N/A"),
        Coalesce(DataCardValue46.Text, "N/A"),
        Coalesce(Label1.Text, "N/A"),
        Coalesce(DataCardValue18.Text, "N/A"),
        Coalesce(DataCardValue17.Selected.Value, "N/A"),
        Coalesce(DataCardValue28.Text, "N/A"),
        Coalesce(DataCardValue29.Text, "N/A"),
        Coalesce(DataCardValue30.Text, "N/A"),
        Coalesce(DataCardValue35.Text, "N/A"),
        Coalesce(DataCardValue41.Text, "N/A"),
        Coalesce(DataCardValue5.Text, "N/A"),
        Coalesce(DataCardValue44.Text, "N/A"),
        Coalesce(DataCardValue3.Text, "N/A"),
        Coalesce(DataCardValue2.Text, "N/A"),
        Coalesce(DataCardValue6.Text, "N/A"),
        Coalesce(DataCardValue1.Selected.Value, "N/A"),
        Year(DataCardValue19.SelectedDate) & "-" & Month(DataCardValue19.SelectedDate) & "-" & Day(DataCardValue19.SelectedDate),
        Coalesce(DataCardValue54.Text, "N/A"),
        Coalesce(DataCardValue59.Text, "N/A"),
        Coalesce(DataCardValue60.Selected.Value, "N/A"),
        Coalesce(DataCardValue55.Text, "N/A"),
        Coalesce(DataCardValue57.Text, "N/A"),
        Coalesce(DataCardValue58.Selected.Value, "N/A"),
        Coalesce(DataCardValue56.Selected.Value, "N/A"),
        Coalesce(DataCardValue7.Text, "N/A"),
        Coalesce(DataCardValue21.Text, "N/A"),
        Coalesce(DataCardValue4.Text, "N/A")
    )
     
  • Verified answer
    JD-03091828-0 Profile Picture
    75 on at
    Thank you for the suggestions - neither of these are working, so I am going to try to leverage the default selections in SharePoint to ensure every column always has a value (even if it is "N/A" or 0).  The flow isn't running because the blank values aren't passing through.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard