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 Automate / Powerapp (v2) trigger ...
Power Automate
Unanswered

Powerapp (v2) trigger to upload doc to SP doc library

(0) ShareShare
ReportReport
Posted on by 125
Hi,
 
I'm stuck on the following error. I'm using PowerApp triggered flow to (try to) upload an Excel file selected in an attachment form control to a SP document library.
 
Here's by OnSelect button command:
 
 

 

PVA.Run( {contentBytes: First(AttachmentTemplate.Attachments).Value, file: ""} )

 

 
It obviously comes from the file: "" but I have no idea what I have to put in here ?
 
Thanks!
 

Julien1_1-1645604938706.png

Julien1_2-1645604950586.png

Julien1_3-1645604974653.png

 

 

Categories:
  • EmilioRdz9601 Profile Picture
    2 on at

    Hey man, you object don´t show in PA because doesn´t exist, the right write is this: 

    {
    file: {
    name: Last(DataCardValue1.Attachments).Name;
    contentBytes: Last(DataCardValue1.Attachments).Value
    }
    }

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard