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 / Convert list to folder...
Power Automate
Unanswered

Convert list to folder variable?

(0) ShareShare
ReportReport
Posted on by 2

hi, I need to copy a bunch of folders that contains specific name from a network folder to my desktop.

 

I first tried to use Get subfolders in folder but it is taking really long since the network folder is huge. So I created a power query to get a list of the folder path that I need and saved in excel, then I read that excel file in power automate to get ExcelData that has a list of the folder path that I need to copy to my desktop.

 

Then when I use Copy folder and use %ExcelData[0]% as my folder path, I get an error that says "Argument 'Path" must be 'Folder"... I checked and ExcelData contains the exact path that I need to copy and if I just type that into Folder Path it ran fine. 

 

Any idea why I am getting this error or how do I convert %ExcelData[i]% to a Folder type variable?

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Not sure, but have you tried setting a new variable that contains %ExcelData[i]%, and then verify the value in there is what you are expecting, and then using that variable in the Copy Folder action?

  • Rahul7 Profile Picture
    63 on at

    Could you please share your PAD workflow?

  • VJR Profile Picture
    7,635 on at

    Use a Display Message Box to verify what the %ExcelData[0]% shows.

    It may have something additional/or something missing to it which does not qualify as a folder path.

     

    Also check with the CurrentItem

     

    VJR_0-1658284709259.png

     

  • oqopo Profile Picture
    2 on at

    I checked the excellist variable and wrote the list back to excel to confirm they are correct. In fact I copied the text I wrote back to excel and used that as the folder path and PAD didn't complain

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard