cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
forco02
Level: Power Up

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

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!



Super User
Super User

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!



Helpful resources

Announcements
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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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 Solution Authors
Top Kudoed Authors
Users online (4,855)