I have a SharePoint 2013 designer workflow. it has an action "Wait for Item Update". Workflow does not resumes when i update the item through Code(C#) but when item is updated from out of the box edit form it resumes.
SPList listUpdate = web.Lists["Registration"]; SPListItemCollection items = listUpdate.GetItems(new SPQuery() { Query = @"" + Convert.ToString(newItemid) + "" }); web.AllowUnsafeUpdates = true; items[0]["Title"] = "1"; items[0].Update(); web.AllowUnsafeUpdates = false;