cancel
Showing results for 
Search instead for 
Did you mean: 

Empty people-nodes after people.getMembers()

buurd
Champ in-the-making
Champ in-the-making
Hi!

I have a javascript where I want to send an email to all users in a group. I get all the users with the following line:

 people.getMembers(people.getGroup('GROUP_My_Group')

The problem I encounter is when I would like to get some information out of the each people-node properties. The code below only prints "null".


var aMember = people[0];
var properties = aMember.properties;
logger.log(properties);


Any idea why this happens. aMember gets the following printout:


Node Type: {http://www.alfresco.org/model/content/1.0}person, Node Aspects: [{http://www.alfresco.org/model/content/1.0}ownable, {http://www.alfresco.org/model/application/1.0}configurable, {http://www.alfresco.org/model/system/1.0}referenceable]

Thanks in advance
Roland
1 REPLY 1

darryl_staflund
Champ in-the-making
Champ in-the-making
Hi there,

'member.properties' returns an associative array of properties.  I think you need to iterate over the keys to log each property value.

Darryl
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.