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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard