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 Apps / Get link of file from ...
Power Apps
Unanswered

Get link of file from OneDrive folder link

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using powerquery with Excel for getting details of each students (name, last name, school, grades, onedrive link...) 

 

Each student have a onedrive folder that contains files as photo (Document_Photo.jpg)

However I would like to get the photo from this onedrive link folder for each student

 

Then i would lilke to know if when i get this photo file, i want to rename it as Name_LastName.jpg for each student

 

Thanks for your help

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous To do this u'll need to use Flow with the OneDriveForBusiness Connector.

    1. To get the Photo, u'll use the GetFileContent function and

    2. To rename the File, u'll use the UpdateFile function.

    Please check the full doc here, OneDrive for Business - Connectors | Microsoft Docs

    Hope this helps!

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CNT Is it possible to do this with Flow ? :

    I would get the photo from the onedrive link i can have in my Excel file,

    Rename the file by name and last name of the student (I have the details in my Excel file)

    And put the link of the photo in my excel file

     

    Then each line have the name / last name / onedrive link / onedrive link photo 

     

    capture power query.PNG
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Yes all that's possible with Flows. Please check these videos,

    https://www.youtube.com/watch?v=KdnWlZCEu2c

    https://www.youtube.com/watch?v=dEjDhmT3P0w

    https://www.youtube.com/watch?v=pEHnQ_BQPXw

     

    Regrading storing photos in Excel, I'm not an Excel expert so I can't say much.

     

    Hope this helps!

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Just checking if you got is working. 🚧

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CNT  I tried something but it seems still not working ... 

    I forgot to mention that student folder is into subfolder with different levels as :  

    Folder 1 -> Folder 2 -> Folder 3 -> Folder 4 -> Folder 5 -> Name_LastName (folder with student name)

    I tried to browse each folder (each one contains subfolders), in order to find the Document_Photo.jpg file, to rename it according to the name of the student's folder 

    I can find the first folder, it find me 5 subfolders but I am stuck after that

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous I would suggest to get some thing simple working first and then add more to it!

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 Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard