web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / File name extension no...
Power Automate
Unanswered

File name extension not available

(1) ShareShare
ReportReport
Posted on by 24

I have managed to get most of a test flow running. The intent is that whenever a new document is placed into a sharepoint library an approval request will automatically go to the individual's manager. If approved the document will be moved to another library.

 

I tried using some of the existing templates but didn't manage to find one that did it in the way I was expecting, so I built one. Everything works except that when the file is created in the second library the extension is not added. All I get is the file's name without the extension. I have used the properties only when file is created trigger and the get file content action.

 

Luigi

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Are you using "get file properties"? If so, this thread explains how this could be done several months ago. I haven't tested it myself, so unsure if this method is still valid.

    https://powerusers.microsoft.com/t5/Building-Flows/On-file-properties-modified-move-file-from-one-sharepoint/td-p/49198

    Hope this helps

     

  • LuigiDiFilippo Profile Picture
    24 on at

    The solution they have identified does seem to work but is convoluted and overly complicated. There has to be a easier way to apply the file name, including the extension. If you use the trigger when file is created when file created in folder instead of p[roperties only then you get a file name with extension, but you don't get the ability to get the file creator's user info. I need the file creator's info.

  • v-yamao-msft Profile Picture
    on at

    Hi LuigiDiFilippo,

     

    When testing with your scenario, I got the same issue with you. Using the trigger “When a file is created(properties only)”, the file created in second library doesn’t have the extension. I will help confirm this issue on my side and back to you later.


    In your second post you said that you want to get the file creator’s user info. Do you have a column that will be used to save the creator in the second library?

     

    Best regards,
    Mabel Mao

  • LuigiDiFilippo Profile Picture
    24 on at

    The user info is in relation to the new file that is being placed into the sharepoint library. I then use that info to determine who the person's manager is iniorder to forward the approval correctly. If I were to use the other sharepoint trigger when a file is created, instead of the get properties only, it does not provide the creator user info. Although if I were to use the when file created trigger, the file name does include the extension.

     

    I'm not sure if this is a bug or an intended feature.

  • v-yamao-msft Profile Picture
    on at

    Hi LuigiDiFilippo,

     

    I have some updates for you.


    Please add another action “SharePoint – Get file properties” before the action “Create file”. In the “Create file” action, select the dynamic content “File name” from the action “Get file properties” for the File Name field.


    Please take the following screenshot for a reference.


    I have tested it on my side, the file created in the second library has its extension and can be opened without issue.

    3.PNG


    Best regards,
    Mabel Mao

  • LuigiDiFilippo Profile Picture
    24 on at

    Mabel,

     

    Thanks for your help.

     

    I did as you indicated but I don't see the FIleName dynamic atribute the only ones I have that carry any file naming info are: Identified and Name. What am I missing?

  • charafRef Profile Picture
    91 on at
  • v-yamao-msft Profile Picture
    on at

    Hi @LuigiDiFilippo,

     

    Could you show me a screenshot on it?


    When configuring the action “Create file”, I can select the dynamic content “FileName” from the action “Get file properties”. Please check the following picture.

    3.PNG

     

    Please check it again on your side.

     

    Best regards,
    Mabel Mao

  • LuigiDiFilippo Profile Picture
    24 on at

    Here is the screen capture.

    Screen Capture.png

  • charafRef Profile Picture
    91 on at

    Hi @v-yamao-msft , i have the same attributs without FileName like his screenshoot. I guest your filename it's our name attribut , but the issue still remains.

     

    fll.JPG

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard