Update multiple SharePoint list Items - sharepoint

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/

Related

Creating a Dropdown list based in another field in same form - Sharepoint 2013 List

Guys!
I have a Sharepoint List, and I'm struggling to customize the webpart to include a new Item.
The need is to create a Dropbox that changes values based in another field in same webform.
Here in this list, I select the Coordinator list, but the problem is I really don't know how to show in Analyst field just the analysts from the coordinator I just choose.
Note: We are using a workspace in Sharepoint 2013, and due adm restrictions we can only use the regular settings, so we can't create custom HTML webparts for example.

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.

Get workflow associated list items

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.

Nintex Workflow: Querying Another List

I'm currently working on a nintex list workflow for List A. I want a certain step in this workflow to run when an associated folder for the item in library B is modified.
For example:
User adds document to Item 1 in Library B
This then fires Nintex step to change status of Item 1 in List A
Any suggestions?
You could make a new workflow on Library B which updates a status column in List A when the document is added. In list A workflow you can use "wait for item update" shape to run you steps once the status was changed.
Create a list level workflow in library B, change the trigger settings from manual to Create or change item. Then configure it so that it queries for the item in List A using the common field(lookup field), Update the item.

SharePoint 2010 Foundation Update List Where clause

I need to update List A from a form submitted in List B, where B.username = A.username. I am used to using SharePoint 2010 Enterprise and some of the advanced tools that go with that, but right now I am stuck on 2010 Foundation.
I don't know if I'm just having a brain pfft or something, but I can't make it work. Is this a limitation of Foundation? In the workflow editor in 2010 Designer, I can say update List A with a value from List B, but somehow not submit a where clause. Can anyone help?
What I'm actually trying to do is have a list of all users on the network and the form from List B just updates the "Accept" or "Decline" by the user's name in the first list.
Any help would be appreciated.
Assuming this is one-to-one relationship - that is, the WF triggered on the item in List B would only ever update one item in List A - when you configure your "Update List Item" action within the WF and select a "List" other than 'Current Item', a section will appear at the bottom called "Find the List Item" that will allow you to define how the WF will find the item in List A to update.
See here:
Bear in mind though, when using SharePoint Designer, you're limited to one-to-one relationships, and the only 'where' clause you can apply is an equals filter whereby some value you have (be it from the current item, a WF variable, an initiation parameter or a static value) is compared via equals operator to a field in the remote List (i.e. your List A). Should you define a clause that could result in more than one match - again, your WF on List B cannot trigger an update to 'n' items in List A - you will see this warning:
Caveat: all these conditions only apply when creating a WF via SPD; if you have access to Visual Studio, you can use it to create & deploy workflows that do support updating multiple items in a remote list based on a single WF being triggered, querying the associated items through something other than an equals, etc.

Resources