Get workflow associated list items - sharepoint

I have one requirement to get all the list items which has associated with a particular workflow in SharePoint 2013. Like, I have a designer 2013 workflow with name "Test Workflow" which is added in a custom list. Tis workflow associated with around 70 items. In the same list I've added another workflow with name "Test Workflow 2". I need to fetch the ID of all the list items which are associated with the first workflow (all the 70 items ID).

First of all workflows are attached on list level not item level..
Now regarding your query, you can enable ID column in your "AllItems.aspx" to view all the 70 items that are associated with first workflow.
I hope you are not looking for any scripted approach to fetch those IDs.

Related

Assign SharePoint list item to a list of individuals on a rotating basis

I am trying to assign list items to a list of individuals on a rotating basis.
Here is essentially what I am trying to do:
Names: Tom Joe Sam
In a SharePoint list, when a user (other than these three people) adds an item to the list, an email/task would be sent to Tom, and Tom only, column will populate with Tom's name as assigned to that item. The same thing would happen if a new list item is added, but it would be assigned to Joe, and then Sam, and then back to Tom, and so on.
Is there any way to do this in SharePoint designer 2013?
Alerting is a standard feature for SharePoint Task lists, however activation has been removed form the UI in SharePoint 2013.
This article describes how you can enable it using PowerShell:
https://gallery.technet.microsoft.com/office/Enable-email-notifications-390a927c
When the alert feature is enabled, the assigned user will be informed about every change to the task item.
For your use case, Tom needs to set up a notification for himself on the list, so he receives an email for every new item even when it is not assigned to him.

Is it possible to update an item using list id instead of list title in the SharePoint designer workflow?

I am trying to update an item in a different list if any change event occurs on the source list item. I have different list id for different items on the source list that's the reason I wanted to update item using list id instead of list title. Is it possible to update an item using list id instead of list title in the SharePoint designer workflow 2013?
You could call rest api /_api/web/lists/GetByTitle('listtitle')/items(itemid) to update list item by 'Call HTTP web service' action.
You could refer this thread for sample.

Sharepoint designer workflow wont add item to another list

in a sharepoint 365 environment.
I have list with student names.
I'would like to add a workflow so that when a new student is added, another list will add an new entry starting with that student name as a link to the first table.
I get confused by sharepoint designer i click add list item.
Select the seccond list, but it seams not to create the link. every option i tried with add list item, so far failed.

How do I avoid creating 65 separate SharePoint workflows

I would like to send an email notification to a specific user based on the Category field in my SharePoint list. I currently have 65 choices for Category. i.e. new item posted in the 3D category, an automated message should go to John Doe.
How can I do this so that I don't have to create 65 workflows - or 65 steps in one workflow!? Any thoughts appreciated. The user submitting the new item will not know who to 'assign' the item to.
I've done something similar in the past:
Add another column to the Category list that contains the user that should receive the email when that category is selected.
When the workflow runs, lookup the user in the Category list based on the Category selected and set it to a workflow variable
Log the workflow variable (for troubleshooting) and set the "To" field to the variable.

Update multiple SharePoint list Items

I have an InfoPath form that, when submitted to a SharePoint Form Library, also adds a single item to a Task List. Each item in the Task List contains a People field that may contain multiple names. I have code in the form that creates separate items in a Custom List, one for each name in the People field.
When I manually update the Status field in a Task List item, I would like a SharePoint workflow (I'm using Designer 2010) to update all of the Status fields for the corresponding items in the Custom List. The "Update list item" option in ShP 2010 workflows will only update a single list entry. Is there a way to update all of the Custom List items that correspond to the Task List item whose Status is being modified?
To update multiple list items simultaneously, use SharePoint batch update. Look at following links for more information:
MSDN - Visual How To - Batch Updating List Items in Windows SharePoint Services 3.0
http://apmblog.compuware.com/2009/01/20/sharepoint-using-batch-updates-to-speed-up-performance/
You can also use batch operations for inserting and deleting.
I have written two workflows on codeplex - one is https://rwomi.codeplex.com and one is https://umlisdw.codeplex.com/

Resources