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'.
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
In PowerApps:
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
4. in create item action, use below expressions for the numeric columns:
if(equals(variables('variableName'),''),null,int(variables('variableName')))
5. in PowerApps, use TextInput.Text directly, drop the Value functions.
item flow created:
Best regards,
WarrenBelz
146,776
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional