cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Microsoft
Microsoft

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
Microsoft
Microsoft

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

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (48,130)