Quantcast
Channel: Question and Answer » web-services
Viewing all articles
Browse latest Browse all 136

How can output Title, Email and phone from User Profiles

$
0
0

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?


Viewing all articles
Browse latest Browse all 136

Trending Articles