How to convert people picker value to username using SPServices

1.7k Views Asked by At

I have a people picker column in my list and the values when i call it via SPServices turns out to be

#10; last, first(dept_num);#35; last2, first(dept_num)

Is there a way to get a username from that?
I would like to do a GetUserProfileByName

1

There are 1 best solutions below

1
On
 public String IsNULL(string strnull)
 {
     if (strnull == dval)
         return dval;
     else
          return Convert.ToString(strnull.Split('#')[1]);
 }

Pass your string to this function. It will remove the id of group and gives you exact group name.