cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dudditz
Responsive Resident
Responsive Resident

Word Online Business Connector PowerApps

So I have a question about certain connectors. I am testing out the Word Online Business Connector and have added it to PowerApps. It seems like you can add it's function as power apps recognizes it. When building a button and adding the following formula
'WordOnline(Business)'.CreateFileItem("https://sharepoint.com/sites/DH1","P1","template.docx")
PowerApps seems to be okay with this formula and no errors are being returned until I select the button that I have applied this formula to. See image.

So is this meant to be used directly within PowerApps or do I have to use this from a Flow? I am not finding any documentation that indicates how to prepare your word document for using with PowerApps. In this test I added developer tab, added a plain text control, properties, and within title I named it the field text name. No idea if this is correct however it seems like it would need some type of identifier within the word document.

Anyone else out there tried this connector with PowerApps? I see a lot of potential with this connector however the documentation is really lacking

6 REPLIES 6
rebeccas
Super User
Super User

CreateaFile I am 98% sure can only be done using Flow. Mine they can type in the name they want for the document, have a button that triggers it is in PowerApps and I force the name to be a ".docx" and then the flow runs.

 

My flow: Gets File Content, Creates File

 

I have a template that I let them copy and then edit which I think looks like you are doing too. 

RandyHayes
Super User III
Super User III

@Dudditz 
It appears from that message that you do not have any template elements in the file.  But, as you say, you did add some with the text control.  Not sure of the viability of this in PowerApps vs. Flow.  I know that in Flow (at least) it "picks up/reads" the controls that it can use - as per this article.

Also an article that might be helpful, even though it is discussing Dynamics.

I chimed in on this because I thought you might also be interested in reading a recent post that dealt with this and other options.

Also, this thread has some more information that might be helpful.

 

Hope this helps get you going.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
Dudditz
Responsive Resident
Responsive Resident

Thank you all for you feedback.  After further reading up on this it works fine from flow and it see's my placeholders.  I am under the impression this can't be done straight from PowerApps as my template is the same in both.

v-xida-msft
Community Support
Community Support

Hi @Dudditz ,

Do you want to populate a word template using 'WordOnline(Business)'.CreateFileItem() formula within PowerApps?

 

I have made a test on my side, I afraid that there is no way to achieve your needs in PowerApps currently.

When you execute the WordOnline(Business)'.CreateFileItem() formula within your app, there is no way to pass parameters to corresponding arguments you specified within your word template file.

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

As an alternative solution, you could consider take a try to achieve your needs using Microsoft Flow. I have made a test on my side, please take a try with the following workaround:6.JPG

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft  When you do the process as outlined below, and save the new file back to sharepoint, are you able to open the file in word (desktop) version? I have tried and was only able to get it to work once.. even with a blank page template with one non-rich text filed added to it. I get an error. 

Hey @elephant_33 , I did this and it works great. I am happy with the result. Now I am trying to include pictures also in the word document, but here is what I did:

 

My powerapps save the dat in a Share Point list.

I have a button to print the selected record.

That button triggers the event in my flow

The flow get the item from the Share Point List.

Populate a MS word template with the fields. (This template in SAVED in my onedrive

The flow create a file word file.docx in a folder in the same path

then the flow convert that word document to PDF.

Compose an email and the user receives an email with the PDF enclosed.

 

If you still have issues I can share some screen shots.

 

Regards

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (44,001)