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

Community site session details

Session Id :
Power Automate - General Discussion
Suggested answer

Help Needed: Auto-Add .txt Extension to Files Copied from SharePoint to OneDrive via Power Automate

(1) ShareShare
ReportReport
Posted on by 2

I’ve successfully built a Power Automate flow that copies any new file added to a dedicated folder (DF) in SharePoint directly to a folder in my OneDrive. It works well, but I’ve noticed that some users upload files without any file extension. These are typically .txt files.

I’d like to enhance my existing flow so that:

  1. Power Automate detects if a file copied to OneDrive does not have a file extension.
  2. If missing, it should rename the file to include .txt.
  3. The renamed file should replace the original file (not create a duplicate).

How can I implement this logic within the same flow? Any guidance or examples would be greatly appreciated!

Thanks in advance!

Categories:
I have the same question (0)
  • Suggested answer
    abm abm Profile Picture
    32,535 Most Valuable Professional on at
    Help Needed: Auto-Add .txt Extension to Files Copied from SharePoint to OneDrive via Power Automate
    Hi
     
    I have created a video based on this. Please watch and comment.
     
     
     
    Thanks
  • Suggested answer
    abm abm Profile Picture
    32,535 Most Valuable Professional on at
    Help Needed: Auto-Add .txt Extension to Files Copied from SharePoint to OneDrive via Power Automate
    Hi
     
    Follow the below steps. Similar action steps are in OneDrive too. I have used the Sharepoint here.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 745 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 528 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 320

Last 30 days Overall leaderboard