Originally posted on: http://geekswithblogs.net/simonh/archive/2013/04/12/sharepoint-2010-workflow-status-values.aspx
When you want to filter a document library or list using the approval status, entering Completed or Pending into the Filter by field doesn’t work, all the status’ are stored as a integer, below are the codes I have come across and tested so far:
- NotStarted = 0
- FailedOnStart = 1
- InProgress = 2
- ErrorOccurred = 3
- StoppedByUser = 4
- Completed = 5
- FailedOnStartRetrying = 6
- ErrorOccurredRetrying = 7
- ViewQueryOverflow = 8
- Canceled = 15
- Approved = 16
- Rejected = 17