Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I open a dialog initiation window of my sequential workflow from ECB menu. There is a start button on it. When this button is clicked the workflow starts working and the dialog window stays open. How can I start the workflow and then close the window immediately? For example, start workflow asynchronously.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

I have found the answer. I use SPWorkflowRunOptions.Asynchronous :

Web.Site.WorkflowManager.StartWorkflow(workflowListItem, association, GetInitiationData(),SPWorkflowRunOptions.Asynchronous).

But there is other issue: workflow starts working after 3-5 minutes.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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