AnsweredAssumed Answered

Get User Properites from a group

Question asked by kregers on Jan 21, 2009
Latest reply on Jan 21, 2009 by lotharm
Hey There,

I'm currently developing my first workflow. My goal is to assign a task to a group (completed) and email that group to let them know they have stuff to do. I realize this can be accomplished using rules etc. but I want to do it by hand to get a better understanding of advanced workflow.

I have succesfully used the  following:

var members = people.getMembers(people.getGroup("GROUP_HelloWorld"));

Now the logic in my head says I should be able to loop through the array that comes back from members and perform some sort of magic voodoo to get that users properties (in my case email address or at a very minimum username)

I've tried

member = people.getPerson(members[x]);
username = member.propeties.username

but that doesn't work. I've also tried:

member = members[x];
username = member.username

but that fails as well.

Any help that the experts, or at least slightly more advanced them me could provide on this would be greatly appriciated.