Announcements
Hi, I would like to split a string by a delimiter in order to get an email address to send some stuff attached.
The title of files are like: example@email.com#120_2.pdf
I want to extract the text before "#"
Here's the flow I have so far:
Hi @lasher18
Try
@first(split('example@email.com#120_2.pdf','#'))
--------------------------------------------------------------------------If I have answered your question, please mark my post as a solutionIf you have found my response helpful, please give it a thumbs upConnect on LinkedIn
Ir returns an error. "The parameter 'To' cannot be empty".
I put: first(split(variables('Textosplit'),'#')) in 'To' when sending the email
Hi @lasher18 ,
I cant see your expression but you are spliting the variable you are initialising which would be empty. Are you sure you are referencing the correct variable in the expression? Assuming there is an actual value and its not null.
Example below is using @first(split(variables('MyStr'),'#'))
Thanks! It worked. Just one more thing please. How can I do the same for the second part of the string? The one after "#"
Same formula but replace first with last()
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 605
Valantis 340
11manish 284