cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

set permissions on sharepoint list items using site workflow

Dear All,

I have a list which is having around 2000 items in which there are around 1500 items are in closed status, now i would like to set different permissions for all closed items.

Regards,

 

Labels: (1)
0 Kudos
Reply
5 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: set permissions on sharepoint list items using site workflow

Hi,

Use a query List Action to retreive all the items that have the status closed and store their ID's.
Then use a for each action to process the collection variable and a set item permissions action to se the item permissions based on the ID.
Reply
Highlighted
Nintex Newbie

Re: set permissions on sharepoint list items using site workflow

Hi Simon, 

As you said, i have created site workflow, below is my screenshots for each action. seems like it is not working.

Query listQuery listfor eachfor eachset item permissionset item permission

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set permissions on sharepoint list items using site workflow

Hi @ramanjjilunaidu,

in your workflow history, is the "set item permission" action executed?

If not, your collection may not be populated and you should look at the query list action.

 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set permissions on sharepoint list items using site workflow

It is working fine, but the problem is that initiator is taking it as the one who created the workflow not item created by who is actually author right, thank you.
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set permissions on sharepoint list items using site workflow

In this case, in your foreach loop, add a query list action

 

Query "HelpDesk"

Where ID = WFVaribable:ItemID

Field "Created By"

 

store in a new variable and use this instead of the Initiator when setting permissions

0 Kudos
Reply