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 / Find files with no ext...
Power Automate
Unanswered

Find files with no extension and add or rename file

(0) ShareShare
ReportReport
Posted on by 12

We have an application that pulls pdf's from an internal system which then uploads to a document library. Unfortunately it wasn't discovered in early testing that in some instances where there is a string at the end of the file is enclosed in parenthesis that it doesn't add the file extension, eg., myfilename(1234)pdf. I have thousands of these that I need to add the file extension to. 

How can I identify those files with no extension? When using get-files I can't figure out how to identify them to set a variable for the actions to add the .pdf.. 

 

any assistance would be great. 

Categories:
I have the same question (0)
  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @kbullit61 see if this helps

     

    jinivthakkar_0-1614891918575.png

    jinivthakkar_1-1614891976488.png

    You really don't need a variable, you can hard code .pdf to file name once you have the file.

     

    Note :  This is like a demo/poc for your to build your logic, I am just copying files from one library to another and changing the file extension to .pdf, also in get files I am not filtering files based on extension you will have to do it in your flow.

     

    Hope this helps.

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

     

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