mercredi 7 janvier 2015

How can output Title, Email and phone from User Profiles



I found some code that outputs from user profiles and works but it only outputs Manager. How can this be changed to output Title, Email and Phone number?



var managerName;
$().SPServices({
operation: "GetUserProfileByName",
async: false,
AccountName: $().SPServices.SPGetCurrentUser(),
completefunc: function (xData, Status) {
$(xData.responseXML).find("PropertyData > Name:contains('Manager')").each(function() {
managerName = $(this).parent().find("Values").text();
alert(managerName );
});
}
});


I've tried changing the code section below but this doesnt work at all.



completefunc: function(xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var oTitle = ($(this).attr("Title"));


Any ideas?








0 commentaires:

Enregistrer un commentaire