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 sub-folder based on condition - tricky..

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

Hello,

 

I have a flow that has created a PDF in a folder in OneDrive:

sudosaurus_0-1717769591479.png
Next, I've added a 'Get files (properties only)' action with a Filter Query to find items where the 'PersonalRef' column matches an 'employeeId' value from earlier in the flow.

sudosaurus_1-1717769690880.png

If there is a match, then the PDF should be created in the 'Second Job Declaration' folder below with the users metadata.

sudosaurus_2-1717770170171.png

I am unsure how the file could be added to that folder as the folder name would be different for each user as this follows a Surname,Forename,EmployeeID naming format so the length of the string would never be the same either.

 

Would appreciate any suggestions as to how to achieve this - as I'm sure its possible.

 

Thanks!

Categories:
I have the same question (0)

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 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard