So I've figured out how to set item permissions on incoming items with the help of the community and it looks something like this: (Picture Attached)
Set Item Permissions
I've noticed that I can only run this workflow on one item at a time. Is there any way to open up the workflow and make it run on all current items instead of just the last submitted item?
Solved! Go to Solution.
what you can do is to create a Site Workflow. In this site workflow you perform a List query, where you return all items you want to start a workflow on. For these items you store the item IDs in a collection variable. Now you add a For each action, where you iterate the ID collection.
Inside the loop you add the Web service action. As the address you write the following: [current web url]/_vti_bin/nintexworkflow/workflow.asmx.
Here you can select the StartWorkflowOnListItem method. Enter the variable where you store the item ID, the list name and the workflow name. Be aware that if you have a lot of items, the workflow can run for quite a time.
You can even schedule the workflow to run regularly/at a specific time, via Site Settings -> Scheduled workflows.http://sps2013dev-mzi/sites/ggz/_layouts/NintexWorkflow/WorkflowScheduleList.aspx
Ah hah. You have been a huge help Martin. I'm sure that I can use the other trick you showed me about a list and a variable and do the same? I don't have access to an account that can do the web service.
What you could do if you dont want to use the web service is the following:
This does change the last modified and modified by columns though.
That won't work then. The data is modified and created by sensitive. What I have been trying is:
I have a list that has the users and their groups, this works great for new submissions, just like you said.
Query List (created by)
Set Variable (group)
For Each (Collection)
Set Item Permissions (By Group)
Then I tried to Query and after that collection operation and so on from there. It doesn't seem to work that way.
What I have almost working is:
Query List: Store ID and Created by
Set Variable: Group if Username = Created By (Group and Username are in their own list)
For Each: ID Collection store in ID_Column
Update Item Permissions: Set the Group (variable) as contribute and another group as full control
The last working configuration of this that worked set all of the items' permissions to all of the groups that had ever created an item in the list.
Still looking for some assistance here. I've tried every permutation of settings I can think of. Obviously it's not setting the group with the IDs and created by data that I am gathering. Would a collection solve that? Do I need to make a collection and put all of the data from the lists in it?