web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Autofill word template - empty datacard stops flow

(0) ShareShare
ReportReport
Posted on by 137

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? 

 

I have the same question (0)
  • yashag2255 Profile Picture
    24,695 Super User 2024 Season 1 on at
    Re: Autofill word template - empty datacard stops flow

    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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard