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 / Error in Naming of Sub...
Power Automate
Answered

Error in Naming of Subfolder

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator
I have created a flow that is creating PDF files in a SharePoint Library subfolder.

Everything is working except the naming convention formula.

My intent is to have the library present as Folder-subfolder-file
     Folder: Property Name
     Subfolder: Week Ending and Date

I am successfully pulling in this information as meta data, as shown in the last
screenshot - 'Week Ending' column shows desired content I want displayed as the
subfolder name.

No matter what I've tried, flow keeps breaking up the date portion of the Week Ending
field, creating two additional - unwanted, subfolders.

How/What do I correct so that there is one main folder and one subfolder, with the
subfolder name being 'Week Ending 1/19/2025'

Flow -


SharePoint Button Formula -

SharePoint Library -
Categories:
I have the same question (0)
  • Verified answer
    NickWarner Profile Picture
    113 on at
    The slashes in your date format denote a folder change, you can't use them in your folder name. if you replace with dashes it should work as you expect.
  • Phineas Profile Picture
    5,331 Moderator on at
    That is the default formatting of the DatePicker.

    How would I change the slashes to dashes?
  • Suggested answer
    Phineas Profile Picture
    5,331 Moderator on at
    I figured it out -

         
    Text(DatePicker1.SelectedDate, "m-dd-yyyy")

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard