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

Delete last / from a mappath

Hello Experts,

 

I have two document libraries. Between these libraries I copy files which are edited by employees. After editing, these files must be copied back to the original location. The location where it should be copied back to is given to the original file as metadata. This is the folderpath where the original file is located.
for instance :
/projects/742-bb/

The problem is the last "/"

Is there a way to remove that last "/" from the path?

Joppel_0-1625178166576.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @Joppel 

 

Here it is

 

image.png

 

Above expression is as follows:

 

substring(outputs('Compose'),0,sub(length(outputs('Compose')),1))

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

1 REPLY 1
abm
Super User
Super User

Hi @Joppel 

 

Here it is

 

image.png

 

Above expression is as follows:

 

substring(outputs('Compose'),0,sub(length(outputs('Compose')),1))

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,607)