
Hi all.
So I finally have my flow up and working. A button in Power Apps initiates the flow, sending "DataCardValue1(2,3,4,etc).Text" to the flow, which is used by the "ask in powerapps" commands.
In the flow, I have a "populate word template" step, in which the flow identifies the following need :
Input 1
Input 2
Input 3
Etc....
In Power Apps, I have the linked the datacardvalue.Text to the appropriate input.
Xxxxx.Run(DataCardValue1.Text, etc)
This works exactly as needed, the problem arises when one of the datacardvalues has no input text within the PowerApps form.
If any of the fields is empty, the PowerApps button to initiate the flow crashes. It expects input for every datacardvalue.Text in the Run function, and if one is blank it just crashes.
Is there any way to work around this, so that a blank field will be accepted?
Hi @EriSto
You can set a default value to the text input (for example "NA") and then this will send a value to the flow (either NA or the user response) and in flow, you can check if it is NA, it passes null and if not it considers the original text value. (for an edit form, on the default value for text input, you can use the expression: If(IsBlank(Parent.Default),"NA",Parent.Default) )
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!