cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate V
Advocate V

How to remove first character from a string in Flow

Hi All,

 

I have a variable which concat's 3 variables and wanted to know how to remove the 1st comma as circled below

 

 firstcomma.JPG

 

Initializing and set variable values as below

 

newsletterv1.JPG

 

concat(variables('Volunteer Newsletter'),variables('General Newsletter'),variables('Healthcare Newsletter'))

 

concat.JPG

 

 

Thanks 

Jag

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @jasb81 ,

 

Please refer to screenshot below to create the flow:

1.png

The expression in the Compose 2 as below:

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

 

The flow would run successfully as below:

2.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi @jasb81 ,

 

Please refer to screenshot below to create the flow:

1.png

The expression in the Compose 2 as below:

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

 

The flow would run successfully as below:

2.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Highlighted

If I needed to remove more characters. For example 50. How would I modify the substring line to delete more? Thanks

Highlighted

 

substring(outputs('Compose'),50,sub(length(outputs('Compose')),50))

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (4,017)