cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Glenda
Advocate IV
Advocate IV

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
v-xida-msft
Community Support
Community Support

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

3 REPLIES 3
v-xida-msft
Community Support
Community Support

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

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

Guru2
Regular Visitor

worked for me.

 

Thanks

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (74,777)