I want to retrieve a custom field from the user profile property with rest. The property is searchable in search. Name of the custom properties "CompanyNumber"
But when I try to use http://companyname.com/site/sitename/_api/SP.UserProfiles:peopleManager/GetMyProperties
it does not retieve the custom properties, only the built in properties like :
- AccountName
- DirectReports
- DisplayName
- ....
I get a node that says UserProfileProperties where there is a Key? But how do I use this?
INFOPATH
I have to use infopath so pure javascript does not work :(
What I realy want to do is to type in the CompanyNumber and then the adress / postnumber / etc. get autopopulated