web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to split a string ...
Power Apps
Answered

how to split a string with @ symbol as separator

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

This could be fairly simple , I am trying to achieve below. 

I have a label that logs current user email, as an example: jorge.johnson@abcmail.com

 

what I want to do is, extract jorge.johnson from the label above, how can I do that, I tried split function but its erroring so not sure if its right. See below. Please help me get a solution for this, thanks in advance. 

Untitled.png

Categories:
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous

    place your Formular inside First(…your Formular here)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @PowerRanger , for some reason it still errors. 

    1.PNG

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous Sorry. Add  .Result

     

    So First(Split(.....)).Result

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PowerRanger that worked, thanks so much.

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous Split() will return a table with one column named Result

    PowerRanger_0-1644871855025.png

     

    When you highlite a formular you can see it return value.

     

    In your case we do know that we need the first item of this Table. Thats why we are using First()

    First() will Return a record with one property named "Result"

     

    PowerRanger_1-1644872119123.png

     

    Thats why we have to add .Result add the end because that the property which value we do want to get.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard