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 / Keeping the extension ...
Power Automate
Suggested Answer

Keeping the extension when creating a file from "Get File Content"

(0) ShareShare
ReportReport
Posted on by 4
Hi,
 
My flow starts with a Form through which users can provide attachments.
These attachments are automatically saved to a OneDrive folder, and my flow copy these on different Sharepoint folders through "Get File Content" [OneDrive] and "Create File" [SharePoint].
 
Does anyone know how to preserve the Extension of the original file?
 
I'm attaching my Flow to this question.
 
Thanks!
 
Flow.png
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Could you append Volet social before the filename?
    This way you would not have to change your flow.
    Otherwise use the following expression
    concat(
        first(split(variables('fileName'), '.')),
        ' - Volet social.',
        last(split(variables('fileName'), '.'))
    )
     
  • SP-26101405-0 Profile Picture
    4 on at
    @SudeepGhatak
    Unfortunately I do not understand either option you are presenting to me.
     
    What do you mean by "append Volet Social before the filename"? 
    The words have to be part of the file name.
     
    Regarding the expression you are suggesting, where exactly should I paste it?
     
    Thanks,
    SP

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard