how to upload file to document library from power app

nick 0 Reputation points
2024-05-13T14:17:12.23+00:00

i want to create a training tracker app using the power app. the employee need to upload their certificate for the training they have completed. i want the app to upload the certificate to a selected folder. example if an employee completes training 1 then the certificate is uploaded in folder 1, if they complete training 2 the certificate is uploaded in folder 2.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,199 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jacen Wang 980 Reputation points Microsoft External Staff
    2024-09-08T19:16:50.2833333+00:00

    Hello,

    Thank you for posting in the Microsoft Community forum.

    You can try to use the SharePoint document library to create mashup applications to browse folders, view, and launch files in native applications.

    Here is a general step:

    • Create a separate folder for each training in the SharePoint document library (for example, folder 1 for training 1 and folder 2 for training 2).
    • Open the Power Apps and create a new one. Add a form for employees to upload certificates.
    • Add file upload control. Use the Add Picture control to allow employees to upload their credentials.
    • Use power to upload files automatically:
         Create a process in Power automation to handle file uploads.
      
         In Power automation, the "when file is created" trigger is used.
      
         Add conditions to check the type of training and upload the files to the appropriate folder.
      
    • Integrate power automation with Power Apps:
         In Power Apps, the Power automation process is invoked when an employee submits a form.
      
         Pass the necessary parameters (such as training types, files) to the process.
      

     

    Reference:

    PowerApps makers can create mashup apps with SharePoint Document Libraries  Release Notes | Microsoft Learn

     

    Best regards

    Jacen

    ——————————————————————————————————

    If the Answer is helpful, please click "Accept Answer" and upvote it. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.