SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best way to show a user that a workflow was cancelled?

I have a manually triggered workflow. Are there any chance I can present the result of the workflow in a dialog, or do I have to create / update a listitem, or send an email?

As for now, this question is in context of the Workflow Designer in SPD. But if a VS sln is possible I like to know how.

Edit: I have a simple workflow, that the user can start with some argument. In case the user enters a special value, I would like to cancel the workflow. The user that started the workflow will have no idea that the workflow was cancelled unless he goes into the workflow history to see that. So I'm wondering if it is possible to show a dialog to the user in the case where I cancel the workflow?



share|improve this question
up vote 0 down vote accepted

You should think of workflow executing as a separate thing from the the normal browser interaction a user does. You can start a workflow from the browser, but after that, it is up to the internal timer jobs to execute the workflow (you can sometimes see this with heavy load, a message saying the workflow is queued will display on the workflow history). So i don't think you will be able to get a dialog message to the user when the workflow is canceled.

What i normally do is have a field on the original item, say called Status, and update that at certain stages of the workflow, eg Started, Ended, Canceled. This way it displays on the list view. The approval workflow has a similar thing. It normally adds the field to the default view automatically.

share|improve this answer

You can do this if you use Visio to create the work flow, see:

The last screen shot shows how it looks on the web.

share|improve this answer
Hi! Thanks for your comment. But this is actually not what I need. I need a much simpler form of feedback when a workflow was cancelled imidiatly after it was started. I've updated the question to reflect that. – Larsi Jan 5 '11 at 10:56

If a workflow being cancelled is an exceptional situation (ie: the user really shouldn't have typed something in that caused the workflow to cancel), you could email them (SPUtility.Email).

share|improve this answer

Your Answer


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.