cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Naresh
Level: Powered On

Removing the last character in the string.

Hi

 

I need an expression to remove the last character in the string in the Microsoft Flow.

 

Please assist.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Removing the last character in the string.

Hi @Naresh

 

it is simple, use this expression:

 

OBS: Don't forget to change the red text to your right action name, and the bold red number(1) are the quantity of chars to remove, in you case 1

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

Look at my flow and result

Anotação.png

Anotação 1.png

 

Best Regards,

 

Gustavo Moraes


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

Gustavo Moraes, o astronauta brasileiro do Flow!


View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Removing the last character in the string.

Hi @Naresh

 

it is simple, use this expression:

 

OBS: Don't forget to change the red text to your right action name, and the bold red number(1) are the quantity of chars to remove, in you case 1

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

Look at my flow and result

Anotação.png

Anotação 1.png

 

Best Regards,

 

Gustavo Moraes


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

Gustavo Moraes, o astronauta brasileiro do Flow!


View solution in original post

MahashankariPN
Level: Powered On

Re: Removing the last index value of array

I have an array with 10 value. I want to remove last index value of array(10th value). please guide me.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (5,257)