cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
beniwal
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
kheiman
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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