web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / automation to upload f...
Power Apps
Unanswered

automation to upload file to SharePoint via PowerApps/Flow and then include it in an Approval Process

(0) ShareShare
ReportReport
Posted on by 54

my original post is not showing, so I am reposting..

 

What I'm trying to do now is upload a specific file to SharePoint and include it in a PowerApps/Flow Approval Process.

 

The business needs to start the business process from an Excel Template (which they have been using historically).

 

I've modified the template to launch the PowerApp and passed the filename (including path) into PowerApps.   

 

Using VBA I have modified the template to encode the file to base64 and attempted to pass the encoded text as a parameter to PowerApps. I have found that there is a limitation on the length of the base64 string (about 1953 chr); when this is exceeded VBA displays a Runtime error=5 (Invalid procedure call or argument).

 

The other approach is to find a way to to use the Attachment Control to display the file so that I can have PowerApps convert the binary (via Image.Value) to base64 and pass it to Flow where I will convert it back to binary, save to SharePoint and then start the Approval Process. (I have successfully performed the base64 encoding, passed to Flow, convert to binary and saved to SharePoint).

 

If that's not possible, is there a was to have the Attachment Control open to a specific folderpath (which is being passed as a paramenter from Excel)?

 

thanks rc

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard