cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
beniwal
Level: Powered On

create file in sharepoint

HI,

 

I have created a flow to create a file in SharePoint.

 

And I am using this formula on click of a download icon in a gallery(Item:  attachments of an incoming email) :

 

UploadafiletoSharePointfromPowerApps_1.Run(ThisItem.Name,ThisItem.ContentBytes)

 

Only of download icon, it shows an error that the parameter value for 'createFileFileContent' is incorrect.

 

Please guide, Thanks in advance

 

 

image.png

1 ACCEPTED SOLUTION

Accepted Solutions
beniwal
Level: Powered On

Re: create file in sharepoint

hi @kheiman 

 

Thanks for your reply.

 

It worked for the exact same code. The problem was I forgot to add 'includeAttachments:true' in getEmail formula.

View solution in original post

2 REPLIES 2
Highlighted
kheiman
Level: Powered On

Re: create file in sharepoint

The way files get handed off from Powerapps to Flow is a bit wonky. Try this approach to get the content bytes into a format that the Sharepoint connector can work with. http://www.cleverworkarounds.com/2019/06/08/getting-pics-to-sharepoint-from-powerapps-is-getting-eas...

beniwal
Level: Powered On

Re: create file in sharepoint

hi @kheiman 

 

Thanks for your reply.

 

It worked for the exact same code. The problem was I forgot to add 'includeAttachments:true' in getEmail formula.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (1,848)