cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
martinav
Community Champion
Community Champion

How to get =LEFT(Filename,SEARCH(".",Filename)-1) to work sharepoint update action?

I need this command to use the front part of a filename into a field.  I need this to occur during item creation.  It works fine as a calculated value in Sharepoint, but I need that field to be a text field after initial creation.  It would be great to do this in flow.  There does not seem to be a set of "Expression" commands to emulate this statement.

 

=LEFT(Filename,SEARCH(".",Filename)-1)
1 ACCEPTED SOLUTION

Accepted Solutions
martinav
Community Champion
Community Champion

I found this in a similar post.  For my purpose, this is what worked... finally.

 

"@substring(body('Get_file_properties')?['Filename'],0,lastindexof(body('Get_file_properties')?['Filename'],'.'))"

View solution in original post

1 REPLY 1
martinav
Community Champion
Community Champion

I found this in a similar post.  For my purpose, this is what worked... finally.

 

"@substring(body('Get_file_properties')?['Filename'],0,lastindexof(body('Get_file_properties')?['Filename'],'.'))"

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,843)