cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
A27152
Level: Powered On

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
Super User
Super User

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.
A27152
Level: Powered On

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.

ohthreesixfive
Level: Powered On

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
Level: Powered On

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
Level: Powered On

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 374 members 4,601 guests
Please welcome our newest community members: