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 / Create file in SharePo...
Power Automate
Unanswered

Create file in SharePoint - dynamic folder name contains

(0) ShareShare
ReportReport
Posted on by 10
Hello,
 
I'm trying to use Power Automate to create a file in SharePoint where the folder name is dynamic. 

The folder name is always in two parts: [Unique ID] & [Name]. The Unique ID can always be presumed correct and unique but, the Name portion has not been produced using any strict rules.

The example below has the full folder name. 'SKSYPYCQF' is the unique ID. Is it possible to enter a folder path that would work using something like a 'Contains' operator so that I can ID the folder path with the unique ID only?
 
 
Kind Regards
Matt
Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,199 Super User 2026 Season 1 on at
    Use the Create a new folder action before the Create file action and create the folder every time. You can test it, but if the folder already exists, nothing will happen, and if it doesn't, it will create it. However, doing this provides the data you need. With this action, it will include the full path value, and you can use this value in the Folder Path:
     
     
  • mrandall86 Profile Picture
    10 on at
    Hi David,

    Thanks for taking the time to have a look.

    I'm not sure your proposed solution would work. Perhaps I can explain further:

    The folders already exist and I know the first part of the folder name.
    In the example folder 'SKSYPYCQF - RandallM', I know the [Unique ID] 'SKSYPYCQF' element but, not the [Name] ' - RandallM'. The [Name] element has no naming convention.
    I think the solution below could lead to creation of multiple files that start with the same [Unique ID] and end with different [Name]s.
     
    Thanks
    Matt

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard