Tag Info

New answers tagged

0

You need to declare the collListItemsEP variable globally so that it'll be defined when used in the success callback.


0

You could leverage HttpSend activity by consuming SharePoint User Profile REST API to return specific user profile properties like Department. Assume we need to retrieve current user Department property. 1) Add HttpSend activity and specify its properties: Method: GET Uri: string.Format("{0}/_api/SP.UserProfiles.PeopleManager/GetMyProperties",WebUrl) ...


0

You can retrieve property information including the display name via another method called GetUserProfileSchema: http://msdn.microsoft.com/en-us/library/websvcuserprofileservice.userprofileservice.getuserprofileschema(v=office.14).aspx


0

You don't need a new context to do this, you just need seperate list and item collections. If you have to get list 1, then use it to get stuff from list2: var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var firstList = web.get_lists().getByTitle("List1"); var firstListItems = firstList.getItems(new SP.CamlQuery.createAllItemsQuery()); ...


1

SP.UserProfiles.PersonProperties.userProfileProperties property returns an a dictionary of property name keys and their string values. In JavaScript you could use the following syntax to access value in a dictionary: myProperties.get_userProfileProperties().UserName or myProperties.get_userProfileProperties()['UserName'] Example var context = ...



Top 50 recent answers are included