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 convert file da...
Power Automate
Answered

How to convert file data type to text

(0) ShareShare
ReportReport
Posted on by 237

I am using the Select file dialog action which returns the selected file name in the 'File' data type.

How do I convert it to a text data type ?

 

Thanks

 

I have the same question (0)
  • Verified answer
    John_A Profile Picture
    Microsoft Employee on at

    You can use the attribute .FullName of the file variable. 

    %File.FullName%

  • GanCW Profile Picture
    237 on at

    Thanks John.  Where can I find the documentation for the properties of the different data type ?

     

  • John_A Profile Picture
    Microsoft Employee on at
  • GanCW Profile Picture
    237 on at

    Thanks for the link.

  • GanCW Profile Picture
    237 on at

    On a related note, is it possible to assign a value to a File type variable or convert a text variable to a File type variable ?

  • John_A Profile Picture
    Microsoft Employee on at

    Trying to understand the need for this. What are you trying to do?

    The types of the variables produced are determined based on the action used. The variables that the user specifically creates (through a set variable action) can create a text or numeric datatype.  There are actions that could change the type of a variable (Convert actions under the Text group). If you use the text variable in a file related action (remove, copy, etc...) it will work just fine. 🙂

  • GanCW Profile Picture
    237 on at

    I am looking for an easy way to parse a file path into the different components - the directory, file name without extension, and extension.

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
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard