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 / How to remember the la...
Power Automate
Unanswered

How to remember the last saved folder path when using "Display select folder dialog" action? (Power Automate Desktop)

(0) ShareShare
ReportReport
Posted on by 4

Hello, I would like to know if it is possible to change the initial folder to the same folder path that was selected as last desktop flow (so that it does not start at the desktop folder every time). I was thinking since the action produces a variable of the chosen folder/file path location, I could maybe store it to another variable so I can use it to change the initial folder. The problem is that im unsure how to make a variable that does not reset when the desktop flow stops.

 

edit: it seems that the "Display select file dialog" action doesnt have this issue since it uses file explorer to search for a file. However, for some reason the "Display select folder dialog" action does not use a file explorer window, so I assume that is an issue?

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @SteveZh ,

     

    I have also tried the same and facing the same. I think its a Bug from PAD.Please report it to the Microsoft Support.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @ToppyTopology 

     

    Please follow the below approach. I assume you have placed display dialog in loop.

     

    Deenuji_0-1717418159380.png

     

     

    Code:

     

    LOOP LoopIndex FROM 1 TO 5 STEP 1
     IF LoopIndex = 1 THEN
     Display.SelectFolder Description: $'''Info''' IsTopMost: False SelectedFolder=> SelectedFolder ButtonPressed=> ButtonPressed
     SET Previousfoldername TO SelectedFolder
     END
     IF LoopIndex > 1 THEN
     Display.SelectFolder Description: $'''Info''' InitialDirectory: Previousfoldername IsTopMost: False SelectedFolder=> SelectedFolder ButtonPressed=> ButtonPressed
     END
    END

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • AK88 Profile Picture
    453 on at

    Hi @ToppyTopology ,

     

    Kindly check the below screenshot that it can replicate in your solution to resolve the query.

     

    AK88_0-1717412978390.png

     

     

    thanks,

    If your query resolves kindly mark it as solution and give thumps Up!

     

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 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard