cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
forco02
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
abm
Super User
Super User

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
Power Automate Video Tutorials

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
Power Automate Video Tutorials

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,111)