function get_user_profile_by_login(login) { var user = {}; var params = { operation: 'GetUserProfileByName', async: false, completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode("PropertyData").each(function() { user[$(this).find("Name").text()] = $(this).find("Value").text(); }); // end each user.login = user.AccountName; user.full_name = user.PreferredName; user.email = user.WorkEmail; } }; if (login != null) { params.accountName = login; } else { params.accountName = $().SPServices.SPGetCurrentUser({ fieldName: "Name" }); } $().SPServices(params); return user; }
Thursday, November 6, 2014
Home
/
Unlabelled
/
how to get UserProfileService Details properties GetUserProfileByName SPServices?
how to get UserProfileService Details properties GetUserProfileByName SPServices?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment