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 do I use variables...
Power Automate
Unanswered

How do I use variables inside a document path?

(0) ShareShare
ReportReport
Posted on by 3

How do I insert a previously created variable in the document path section of “Launch Excel”? I am trying to run a flow every month that will open an excel from the previous month. The file is located in a folder called “05-2022” (which is the previous month and current year.)


I am able to create the folder for the previous month. Below is the flow I have created thus far.

1. Get Current Date and Time
2. Add to datetime

3. Convert datetime to text

4. Create folder

5. Launch excel

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Is this what you are referring to? If not please write back.

     

    VJR_1-1655179550431.png

     

     

  • Annie3 Profile Picture
    3 on at

    How did you create the variables “folder name” and “file name”?

  • VJR Profile Picture
    7,635 on at

    Use Set variable action.

  • tgut03 Profile Picture
    31 on at

    I have the same problem, have you found a solution?

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @tgut03 ,

     

    Please find the solution.

    VishnuReddy1997_0-1719041339794.pngVishnuReddy1997_1-1719041357692.png

     

     

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


    Thanks & Regards

    Vishnu Reddy

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard