web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When I add a Folder/Su...
Power Automate
Answered

When I add a Folder/Subfolder/file in Sharepoint, I want the path of that file to be set in columns automatically

(0) ShareShare
ReportReport
Posted on by 4

Hello,

I'm new to power automate

I'm having this issue where I can't figure out how should I add the path in columns using Power Automate:

for example:

Test/testing/powerautomate.txt

this is the output that I want:

C1ck_0-1677681192560.png
I'm not sure if I'm wrong but this is what I did so far...
I'm confused on what to write in the body

C1ck_2-1677682005927.png

 

Thank you.

 




Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @C1ck ,

     

    I've made a test for your reference:

    vbofengmsft_1-1677722633633.png

    split(triggerOutputs()?['body/{Path}'],'/')[sub(length(split(triggerOutputs()?['body/{Path}'],'/')),3)]
    split(triggerOutputs()?['body/{Path}'],'/')[sub(length(split(triggerOutputs()?['body/{Path}'],'/')),2)]

     

     

    vbofengmsft_0-1677722595683.png

     

    Best Regards,

    Bof

     

  • C1ck Profile Picture
    4 on at

    Hello @v-bofeng-msft ,

    Thank you so much. It worked!

    Regards

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard