cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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
Power Participant
Power Participant

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
Power Participant
Power Participant

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

Highlighted
Frequent Visitor

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (9,607)