Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Term Store User Property

$
0
0

Hello!

I have created an User Property based on multiple term store field.
When I'm retrieving this property using the UserProfiles client api I'm only getting the term names (no path or guid). This is rather useless when trying to resolve the term using the Taxonomy client api.

What I'm missing here?

var peopleManager = new PeopleManager(clientContext);
var personProperties = peopleManager.GetMyProperties();
clientContext.Load(personProperties, p => p.AccountName, p => p.UserProfileProperties);
clientContext.ExecuteQuery();

var terms = personProperties.UserProfileProperties["UserPropertyName"];

terms is now "termname1|termname2"

Thanks in advance!


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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