cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
martinav
Super User
Super User

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
Super User
Super User

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
Super User
Super User

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'],'.'))"

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,063)