cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aluzaja178
Helper I
Helper I

Download File from SharePoint using Flow

Hi friends, 

 

Can anybody please point me in the right direction?

 

I have designed a flow that is creating a file in Sharepoint using the "Create File" action. I want to download this newly created file in PowerApps using a button click. For reference, Please see the flow screenshot:

 

aluzaja178_0-1605696502775.png

 

Any help/guide in this regard would be really appreciated. Thanks 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @aluzaja178 ,

Could you tell me:

  • Did your flow report an error?( Could you tell me what the error is? )
  • Do you want to follow the steps in the picture to complete the operation?

 

If so, the key is to create a word template in SP.

 

I've made a test for your reference:

1\ Open developer mode in word settings(File Options- Customize Ribbon):

v-xiaochen-msft_0-1606124615310.jpeg

 

 

2\ Choose a word template(File - New),I named it ‘TESTGGG.docx’

 

3\ Create a flow  ('PowerApp->Createfile' is my flow name)

v-xiaochen-msft_1-1606124615316.jpeg

 

/* Document Library : file path of word template

  File: word template file */

 

150.PNG

 

 

4\ Create a canvas app and connect this flow to test. Create a button control and set its onselect property to:

 

 

 

Set(A,'PowerApp->Createfile'.Run().testaaaa);Download(A)

 

5\ The result is as follows:

151.PNG

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @aluzaja178 ,

Could you tell me:

  • Did your flow report an error?( Could you tell me what the error is? )
  • Do you want to follow the steps in the picture to complete the operation?

 

If so, the key is to create a word template in SP.

 

I've made a test for your reference:

1\ Open developer mode in word settings(File Options- Customize Ribbon):

v-xiaochen-msft_0-1606124615310.jpeg

 

 

2\ Choose a word template(File - New),I named it ‘TESTGGG.docx’

 

3\ Create a flow  ('PowerApp->Createfile' is my flow name)

v-xiaochen-msft_1-1606124615316.jpeg

 

/* Document Library : file path of word template

  File: word template file */

 

150.PNG

 

 

4\ Create a canvas app and connect this flow to test. Create a button control and set its onselect property to:

 

 

 

Set(A,'PowerApp->Createfile'.Run().testaaaa);Download(A)

 

5\ The result is as follows:

151.PNG

Best Regards,

Wearsky

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,504)