cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MiniMe_83
Helper III
Helper III

PowerApps Populate Word Document

Little help if you please……

 

I have a flow associated to a button in powerapps which populates a word doc template when selected.

 

It fails if not all fields are populated prior to pressing the button…… this will normally be the case as the full extent of the document will rarely be fully populated.

 

Is there something I can add to the below which will allow the flow to run if some on the fields aren’t populated….

 

ThisIsMyFlow.Run(DataCardValue1.Text, DataCardValue2.Text, DataCardValue3.Text)

 

TIA 👍🏻

3 REPLIES 3
HenryARPhillips
Continued Contributor
Continued Contributor

Hi,

The simplest way would probably be to Coalesce(DataCardValue1.Text,"") for each of the inputs.
However I have in recent weeks had grief with the Coalesce function.

So a more long winded way would be to: If(IsBlank(DataCardValue1.Text),"",DataCardValue1.Text) for each input.

 

MiniMe_83
Helper III
Helper III

Thanks Henry, I’ll give it a bash. 👍🏻

Hi Henry, Any idea how I’m dividing the If statement? 

example:

 

If(IsBlank(Datacardvalue1.Text),””,DataCardValue1.Text), If(IsBlank(DataCardValue2.Text),””,DataCardValue2.Text) 

 

Splitting them by a , returns an error. Any ideas 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,070)