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

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

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
Frequent Visitor

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

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,796)