cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Substring help please

I have a field coming in to my flow in the format

 

xxxx yyyy [ aaaa bbbb]

 

xxxx yyyy could be any length and i want to throw away everything from [ onwards (including the [) how can I do this?

I can get rid of everything before with: 

 

substring(triggerBody()?['subject'],variables('IndexOfBrace'),variables('NewLength'))
 
Thanks,
Colin
2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Substring help please

Hi @forco02 

 

Try this

 

first(split(last(split(triggerBody()?['subject'],'[')),']'))

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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

Re: Substring help please

Hi @forco02 

 

If the below reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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

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

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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 (5,659)