In SharePoint 2013 in event receiver (item added) I need to get List item id from which was task started...I have custom list when I add new list item the workflow starts and create new task in task list...After new item is created in task list I need
to get ID(List item id of item which start the workflow) in event receiver of Task list... Hmm...In sharepoint 2010 this work
SPListItem currentTask = properties.ListItem;
Guid sourceListID = new Guid(currentTask["WorkflowListId"].ToString());
SPList sourceList = properties.Web.Lists.GetList(sourceListID, true);
int sourceListItemID = Convert.ToInt32(currentTask["WorkflowItemId"]);
SPListItem sourceListItem = sourceList.GetItemById(sourceListItemID);
but in sharepoint 2013 not...Thank you