Announcements
I have an app where employees need to upload files to specific list items in SharePoint. Everything works well however, we have a problem where not all of our employees have local computers they just have their Microsoft Login and store their files on their OneDrive for Business. How do I have my Attachment Control point to the current user's OneDrive instead of the local computer? I've tried setting up a Power Automate work around but that doesn't work.
Hi @Acruz5 ,
Follow These steps:
Use OneDrive Connector:
Collect File Information:
Attachment Control Properties:
Power Automate (Optional):
Here's a simplified example of Power Automate:
Trigger: PowerApps Button Get file content using path - Path: concat('/drives/', 'your-onedrive-drive-id', '/items/', 'file-id', '/content') - Output: File Content Create file in SharePoint - Site Address: Your SharePoint Site URL - Folder Path: 'your-list-name'/'list-item-id' # Adjust as per your SharePoint structure - File Name: 'file-name' - File Content: File Content
Ensure that 'your-onedrive-drive-id', 'file-id', 'your-list-name', and 'list-item-id' are replaced with the actual IDs and names in your environment.
Best Regards,
Hassan Raza
I tried that but I must not know what to put in the call in the PowerApps. I'm having users click on a button to trigger the flow but it shows the helper text is Run(Addattachment_id, Addattachment_Filecontent). But I don't know what to put there.
AttachedFileFromOneDrive.Run(????)
I have a variable getting the ID of the record I want to place this attachment on. So I do have that much but what do I put for the file content? I am confused.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 519 Most Valuable Professional
11manish 489
Haque 327