Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to use client object model (javascript) to get a custom user profile property?

$
0
0

Hi,

In my sharepoint 2010 environment, I am using the client object model (ecma script/javascript) to display people information.

In my user profile service in sharepoint, I have created some custom properties (using Business Connectivity Services) for people to have.

One of them is called "MyOffice".

How can I get the value of this property using the client object model script for the current user logged in?

I know that I can do things like get items created by current user using the "<UserID/>" code in caml query, or if I get an items Author field, I can call the getlookupid() function on it, and it will give me its username.

Is there a way like this I can get the value of a custom property, if I pass in a people object or lookup name or something?

Thanks.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>