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

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
Anonymous
Not applicable

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 IV
Helper IV

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,981)