Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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:
  • Suggested answer
    kennymcmack Profile Picture
    2 on at
    How to Extract the name from claims in a Powerapps form
    Mid(ThisItem.'Created By'.Claims, 19, 6)
     
  • ohthreesixfive Profile Picture
    25 on at
    Re: How to Extract the name from claims in a Powerapps form

    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.

  • Verified answer
    A27152 Profile Picture
    19 on at
    Re: How to Extract the name from claims in a Powerapps form
    I will give it a try tomorrow and let you know the results - Thanks.
  • ohthreesixfive Profile Picture
    25 on at
    Re: How to Extract the name from claims in a Powerapps form
    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
  • A27152 Profile Picture
    19 on at
    Re: How to Extract the name from claims in a Powerapps form

    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.

  • Pstork1 Profile Picture
    65,906 Most Valuable Professional on at
    Re: How to Extract the name from claims in a Powerapps form

    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard