Announcements
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
You can use the attribute .FullName of the file variable.
%File.FullName%
Thanks John. Where can I find the documentation for the properties of the different data type ?
Welcome GanCWhttps://docs.microsoft.com/en-us/power-automate/desktop-flows/datatype-properties
Thanks for the link.
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 ?
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. 🙂
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
David_MA 267 Super User 2026 Season 1
11manish 196
Haque 182