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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Extract the nam...
Power Apps
Unanswered

How to Extract the name from claims in a Powerapps form

(1) ShareShare
ReportReport
Posted on by 19

I am developing a powerapp and I need to extract the membership name in the claims data as shown in the attached picture.

 

You feedback is appreciated.

Snap62.jpg

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I'm assuming the membership name is the same as the one presented in the email address.  If so couldn't you use Split() to get the first entry in the email?

  • A27152 Profile Picture
    19 on at

    The email is is like belwo I think my pic is off..

     

    {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims:"i:0#.f|membership|A27111@wiXXXX.onmicrosoft.com",
    Department:"",
    DisplayName:"Some User",
    Email:"Some.User@wiXXXX.onmicrosoft.com",
    JobTitle:"",
    Picture:""

     

    I need to get to the "A27111" data.

  • ohthreesixfive Profile Picture
    25 on at
    You should be able to get what your looking for by doing a double Split() like so:


    First(Split(Last(Split([CLAIMS VALUE], "|")).Result, "@")).Result

    If all goes according to plan, the last result of the inner split should return 'A27111@wiXXXX.onmicrosoft.com'; with the first result of the outer split then giving you 'A27111'.
    Edit (6/17/2019):
    I've tested it out and made some minor changes, specifically adding .Result to the end of each Split(). This will return the result as a text value for you to use.

    Cheers,
    Ramiro
  • Verified answer
    A27152 Profile Picture
    19 on at
    I will give it a try tomorrow and let you know the results - Thanks.
  • ohthreesixfive Profile Picture
    25 on at

    My pleasure, I've tested it out on my end and made a minor change. Please check my original post and give that a go.

    Cheers.

  • Suggested answer
    kennymcmack Profile Picture
    2 on at
    Mid(ThisItem.'Created By'.Claims, 19, 6)
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard