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 / Can't use a VAR to mak...
Power Automate
Answered

Can't use a VAR to make a path

(0) ShareShare
ReportReport
Posted on by 14
Hello, 
I'm trying to use a VAR to make a dynamic path, but when i try, PowerAutomate returns me that :
 
 
 
When I look in the debug console, the VAR value looks ok, but PowerAutomate tells me there's a problem ("The action "Get file content"  has failed...").
 
Do you have any solution ?
 
 
Thanks a lot !
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    The File Identifier requires encoded values. For example the '/' needs to be %2F.
     
    You can use the encodeUriComponent function for this. Btw, you can also use the yyyy-MM-dd format directly in a utcNow function (assuming you are using that within your formatdatetime function.)
     
    Below is an example (make sure you swap the Test-NE- part by whatever you have in your setup. It is not visible in your screenshot).
     
    encodeUriComponent(concat('/Shared Documents/DATA/Test-NE-', utcNow('yyyy-MM-dd'), '.csv'))



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • SP-04030758-0 Profile Picture
    14 on at
    @Expiscornovus , thank you for your answer !
    I've find a trick to do this job, but your solution seems better.
     
    Thank you !

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard