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 can I pass empty v...
Power Automate
Answered

How can I pass empty values to "Ask in Powerapps" variable?

(0) ShareShare
ReportReport
Posted on by 67

Hello,

I have a form in Power Apps that submits an image and some data with it to a SharePoint Document Library.

- (Reference: (164) PowerApps Upload Attachment/File/Image to SharePoint Document Library - YouTube)

I'm using the template flow 'Upload a photo to SharePoint from Power Apps'. 

Capture.PNG

 

 

 

I'm using 'Ask in PowerApps' to fill up the fields and the flow works perfectly but only when all the fields are filled even though many fields are not required.

Ex: If I leave 'Height' or 'Note' form fields empty and submit I'll get an error probably because the related Ask in PowerApps is being passed as empty or not being passed at all (since we're not filling it in the form). Is there a way to solve this issue?

Note: The flow runs on the OnSelect property of the submit button not OnSuccess of the Form

 

Capture2.PNG

 

In PowerApps:

Capture3.PNG

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Joseph_Nasr ,

     

    Could you please share more detail about your scenario? Are those columns you mentioned all Number columns? If so, please try below:

    1. remove the PowerApps trigger 

     

    2. add PowerApps trigger again to refresh the input parameters "Ask in PowerApps"

     

    3. initializing 3 string variables, use Ask in PowerApps dynamic contents

    vjefferni_3-1671095425138.png

     

    4. in create item action, use below expressions for the numeric columns:

    if(equals(variables('variableName'),''),null,int(variables('variableName')))

    vjefferni_0-1671094805854.png

     

    5. in PowerApps, use TextInput.Text directly, drop the Value functions.

    vjefferni_1-1671095091590.png

    item flow created:

    vjefferni_2-1671095239352.png

    Best regards,

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard