cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Glenda
Level: Powered On

Split string on '@'

Hi, 

 

Is there any decent way to split a string on @ ('at') in the Compose action?

 

What doesn't work:

  • split(string,'@'), the @ gets stripped out
  • split(string,"@"), the @ gets stripped out
  • ... working with / is not valid

 

I got it working by putting the @ in a seperate variable, but I do not like that solution that much.

 

Any idea?

 

Thx, 

Glenda

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Split string on '@'

Hi @Glenda,

 

Could you please share a screenshot of your “Compose” action’s configuration?

The split() function splits string based on specific separator and the separator doesn’t exist in output that the function returns.

I have made a test on my side and the flow works well. My flow’s configuration as below:12.JPG

 The flow works successfully as below:13.JPG

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Split string on '@'

Hi @Glenda,

 

Could you please share a screenshot of your “Compose” action’s configuration?

The split() function splits string based on specific separator and the separator doesn’t exist in output that the function returns.

I have made a test on my side and the flow works well. My flow’s configuration as below:12.JPG

 The flow works successfully as below:13.JPG

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Glenda
Level: Powered On

Re: Split string on '@'

Hi Kris, 

 

I checked again today, seems to be working now without using the variable.

 

Overview of that part of my flow:

extguest1.PNG

The configuration of my Compose action is as follows:

last(split(body('Parse_JSON_-_external_guest')?['DisplayName'],'@'))

Seems to be that the "Update" button on my end sometimes does not function correctly in the expression builder. Got it working by clearing the expression completely and pasting it in again as the string defined above, it worked. Today is a better day... 🙂

 

Thanks!

 

Glenda

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,366)