Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Publishing file in dynamic file location (creating conditional string)

(0) ShareShare
ReportReport
Posted on by 427

Hello all,

Still pretty new to Power Automate: I have a Document Library where users press a button to start a Power Automate Approval workflow. After the Approval is concluded the file should be published in a folder. 

 

Users are trained to fill in these columns where they want their file to be published, for example:

DJanssen_1-1702643187914.png

 

This would result in the file being published in here:
/Shared Documents/IMS Published Folder/Some map/Some map2

However only L1 is required, the other 3 locations are optional. I have created the following string in my workflow to use as the publish location string:

DJanssen_2-1702643447523.png


What would be the easiest way to update this string if the L2/L3/L4 have value? I can only think of a lot of If statements but that would throttle the flow sadly. 

For extra information Users will only fill in L4 if L1/L2/L3 have value etc. So a combination of L1 and L3 is not possible.

 

Thanks a lot!

 

  • Verified answer
    DJanssen Profile Picture
    427 on at
    Re: Publishing file in dynamic file location (creating conditional string)

    I did it by writing a concat expression that had a lot of nested if(isEmpty()) checks.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1