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

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

Power Automate Video Tutorials

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.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (3,706)