cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
A27152
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
Pstork1
Dual Super User
Dual Super User

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.

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.

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

I will give it a try tomorrow and let you know the results - Thanks.

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,169)