Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

How do I add text to beginning of Uploaded file on Click

(0) ShareShare
ReportReport
Posted on by

I am trying to use Power Apps to allow users to upload their training to a SharePoint document library with a specific file name for organizational purposes.

 

Files do upload correctly to SharePoint with a flow, without the 'update file properties' in power automation. I am having trouble taking first initial of the employees name and last name of the employee from the auto-populated field in my power app (David Humphrey). It is populated by setting the default property to User().FullName (1st image) 

 

 

I would like to take the name, parse it, and save it to my SharePoint library as (dHumphrey_currentYear_Training1SelectedbyDropDown) and look like the second photo on the click upload.

 

2.png

Currently the code for the upload button OnSelect is:

UploadFileToSubTraining.Run(
 {
 contentBytes: First(att_SubmitTraining_AttachFile.Attachments).Value,
 name: First(att_SubmitTraining_AttachFile.Attachments).Name
 });

Below is my power automated flow:

 

3.png4.png

 

 

 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard