cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EthanWang
Helper I
Helper I

Extract File name from SP library

Hi, 

1. I sync my sharepoint library to my desktop, and now i am going to upload bulk files into the folder.

2. once the files uploaded to library, i have two column to record the file name split by "_"

 

here is my question

When use the sync function for onedrive, that will not trigger the automated cloud flow "when the file is created" action, so i manually do another instant cloud flow to extract the file name after i upload all files

 

EthanWang_0-1616744889085.png

the expression is: 

split(items('Apply_to_each')?['body/{Name}'],'_')[0]
 
and the flow failed by this -
EthanWang_1-1616745024080.png

 

Any suggestion?

 

Thanks!!

 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @EthanWang,

 

Can you try this expression without the body part instead:

split(items('Apply_to_each')?['{Name}'],'_')[0]

 

View solution in original post

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @EthanWang,

 

Can you try this expression without the body part instead:

split(items('Apply_to_each')?['{Name}'],'_')[0]

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,359)