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

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 324 members 5,876 guests
Please welcome our newest community members: