cancel
Showing results for 
Search instead for 
Did you mean: 

User / Group list as a property

mythox
Champ on-the-rise
Champ on-the-rise
Hi, is it possible to store a list of user / group as a property of a custom content?  Then for every new version of a file, the system trigger a workflow to send a email to user / group according to the list for approval?  thankyou. 

ST
6 REPLIES 6

romschn
Star Collaborator
Star Collaborator
You can have custom properties to store the usernames/groupnames. You can have these properties as text and put the comma/colan separated values. However, in my opinion, instead of doing that - can not you use the users/groups given permission on that content, this way you will not have to maintain custom prpoerties i believe. Or the users/group given permission on a node and the one you want to store as properties are different one?

mythox
Champ on-the-rise
Champ on-the-rise
thanks romschn, yes i need a separated list to store users/group other than permission list, as the list is not for access right.  I need a specific list for the relevant persons on each customized content, and for every new updated content, the relevant persons will have to approve the update thru workflow system. 

I have added an associations for the relevant person list, but still figuring out how to trigger a workflow when updating new content.

kaynezhang
World-Class Innovator
World-Class Innovator
Or you can try to create associations between your custom content and it's correspoding user/group.

mythox
Champ on-the-rise
Champ on-the-rise
thankyou kaynezhang, i've added an association for person list, and it works, thankyou. 

on the other hands, if i need to trigger workflow when updating version of the customized content, the workflow would refer to the person list for a parallel approval, do you have any idea to achieve it?  thankyou  

jpotts
World-Class Innovator
World-Class Innovator
You can configure a rule that triggers when the document is updated. The rule can execute JavaScript. In your JavaScript you can grab the person list, then use the workflow service to start the workflow. The tricky bit here is to figure out if you can somehow pass the person list to the workflow assignment. If it isn't obvious how to do that via JavaScript you can just write your own custom action that gets triggered by the rule because I know you can do it through Java.

Jeff

mythox
Champ on-the-rise
Champ on-the-rise
thanks Jeff, let me have a try