cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to Extract the name from claims in a Powerapps form

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

5 REPLIES 5
Highlighted
Dual Super User III
Dual Super User III

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?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Frequent Visitor

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.

Highlighted
Resolver I
Resolver I

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
Highlighted
Frequent Visitor

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.
Highlighted
Resolver I
Resolver I

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,570)