1

I'm developing Sharepoint 2013 Workflow in Visual Studio and I need to get ID of a task that is created by Single Task activity and write it to list item's field. What's the best way to achive this?

1

SingleTask activity returns TaskItemId which you can store in a variable and use it in UpdateListItem activity afterwards.

  • Sorry, Slaven, but I cannot use this variable before task is ended, because workflows moves to the next step only after task is complited. And I need TaskItemId to be at SPListItem's field before task is complited... – Chetvergov Oct 30 '14 at 7:40
  • I suppose you need the task ID the moment after it is created. Can you add event receiver to Workflow task list and do your logic there? – Slaven Semper Oct 30 '14 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.