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

I've build my own approval workflow. My workflow is finished, but the state of the workflow (state in library) is "finished". When I finish the standard SharePoint approval workflow the state is "approved".

How can I set the state of the workflow to "approved"?

share|improve this question
up vote 0 down vote accepted

By using the SharePoint object model, you can add your own workflow status that appears in the workflow association column. Each workflow status value corresponds to an integer that represents its place in a zero-based ordered list of column values. The first 15 values in the Microsoft.SharePoint.Workflow.SPWorkflowStatus enumeration are reserved by Windows SharePoint Services for internal use.

To add a custom status value, define a new StatusColumn element under ExtendedStatusColumnValues in Workflow.xml. The first status column value you specify is assigned the integer value of 15; the second status value, 16; and so on.

You can see more details here.

if you would like to extend the workflow statuses enumeration you can try to use this approach.

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.