I’m in need here in the company of two web parts to query profile service. One is a list of the employee birthday of the day and the other is search for employee phone extension. The Birthday webpart will list the employee with birthday of the present day and also they will do a specific birthday date search. The phone extension will be a textbox autocomplete search for a employee phone extension (and other info too), so thats why i need to do a search in the profile services.
My idea was to use the client objects of 2013 version (CSOM) but have not found a method to list of users but only recovering a particular user (when you already provides the user login). Then I thought about building a WCF from scratch (even to put in cache these employee informations and optimize the performance) but was afraid to build something that already exists.
What do you guys think?
Thanks in advance.
Dan
No worries.
Check out manager properties – they need to be create with in serch schema in the Central Administration. Just google “crawled and managed properties in SharePoint Server” to get more info.
Next, as far as you have manager properties, you may be able to query them, to make filtering or something.
So, you use Content By Search web part, configure query – that’s how you get the data you want.
Finally, check out “display render templates” for Conten By Search Web Part or for Search Resul Web part. There are some post about that and getting views customoized.
Pretty much, this is a bi picture of the recommended approach for SP2013.
For 2010 it would be the same, but you would have xslt instead of JS and just Search Result web part.
Good luck w. that.
Cheers!