web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to set new file na...
Power Automate
Unanswered

how to set new file name when continuously download multiple files from website?

(0) ShareShare
ReportReport
Posted on by

when click download button on the website, a window will pump up to set the file name and save location, 

Does any one know how to set a file name using  the name of ' current item' in a For each loop to save a renamed file?

yizhiyouduo97_1-1686661030491.png

 

(the screen shot below is a attempt by me but it does not work...)

 

Thanks in advance! 

yizhiyouduo97_0-1686660927279.png

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Anonymous 

     

    did you meant you want to extract the file name from dialog box and use that in file path right ?

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    What is %CurrentItem%?  Is it a path, or a folder?  

    Just remember, you can navigate to folders vua that SendKeys item. So, whatever folder you want to save it in put in %Folder%{Enter} and then do another send keys for %Name%,ext{Enter} and that should do it. 

  • Community Power Platform Member Profile Picture
    on at

    Sorry for confusion, I have two problems here. First, My currentitem is an ID(loop for an ID list),but i want use the ID's name for file name when download.

    For example, using name of ABC company.csv instead of 100254785.csv. 

    I have a list containing ID column and their actual supplier name in another column, but I do not know how to match ID(my currentitem in the loop)to supperlier name and then use supplier name as my download file name.

     

    My second problem is I do not know how to change name when download file from web site...

     

     

  • L10 Profile Picture
    6 on at

    Hi, could you open up the "Populate text field in window" action and send a screenshot please?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    So, there is no "lookup" command native to PAD.  What I recommend is putting your datatable (col A = ID, col B = Name) in Excel.

     

    Input Cell = D1

    Formula in E1:  =VLOOKUP(D1,$A:$B,2,FALSE)

     

    MichaelAnnis_0-1687381342225.png

     

    Bot does this:

     

    Attach to Excel

    Write %CurrentItem% to D1
    Read as Text from E1 to %BusinessName%
    Rename File [old filepath and old filename] to [new filename with %BusinessName% wherever it needs to be.

     

    Good luck!

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard