cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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.

2 REPLIES 2
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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 211 members 4,729 guests
Please welcome our newest community members: