cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access to 'people' api

theoryoflinkin
Champ on-the-rise
Champ on-the-rise
Hi,

I have to made some modifications inside the "task-edit-header.js" file in order to control the workflow tasks reassignment.

But when I try to access to all the groups of the user selected I always get some errors.

I tried different things with the people API like (args[1] is my person object):


var groupes = people.getContainerGroups(args[1]);


But it seems that I'm not able to use the API people or another one.

Is there an import or a special thing to do to make it works?

Do I have to use an other way to get the informations I need? If yes, can someone help me?

Thanks in advance.
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
people is alfresco server side javascript object and task-edit-header.js is share client side javascript .So of course you can't access people oject in task-edit-header.js
You can call people webscript api using ajax