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

retrieving employeeId attribute Powerapps

Hi all, I have tried to retrieve the employeeId value, however, the value return form the below formula is hash value.

Formula:

First (
Office365Users.SearchUser(
                          {searchTerm: <<Some Value>>}
                          ).Id
).Id


ID Value: 

4a9e5d6d-53df-47a6-86ee-da73756dfc4f

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @MustafaAlqanbar ,

 

If you want the dropdown control to show the id with digits only, please use below formula instead:

Substitute(Office365Users.SearchUser({searchTerm:"xxx"}).Id,"-","")

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
PowerAddict
Super User II
Super User II

Hi,

Does this help?

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Unable-to-get-EmployeeID/m-p/117080...

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

I'm using Combo Box, However, It's still not working, as it is still displaying the hashed value instead of the employeeId value.

Sorry I got injured yesterday. Will respond soon.

Hi @MustafaAlqanbar ,

 

Have you tested with below formula in the Items property of the combo box control?

Office365Users.SearchUser({searchTerm:"xxx"}).Id

 

My combo box control displays correctly with the user Id like this:

Capture.JPG

 

What is the hashed value that you are referring to?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The EmployeeId attribute on active directory contain digits only    

Hi @MustafaAlqanbar ,

 

If you want the dropdown control to show the id with digits only, please use below formula instead:

Substitute(Office365Users.SearchUser({searchTerm:"xxx"}).Id,"-","")

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

MH3
Post Prodigy
Post Prodigy

Hi @MustafaAlqanbar  @v-monli-msft  @PowerAddict 

I want to get the user's ID which is in 5 Digit only your formula displays a long Hexadecimal value, any idea how to get the exact same EmployeeID?

AndreiTC
New Member

Just store all the info in the list and then update it using this flow.

AndreiTC_1-1620246454331.png

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (29,882)