Hi All,
I came across to one requirement where i needed to show only Completed Workflow Items. That means i have one workflow attached to a list and when workflow is completed then only i have to show that item.
so i though of creating a view for that. View will show only those items for which Workflow is completed, not In Progress Or any other. so i though of filter on that workflow field.
I tried to create view. So i went for create view, i gave name of view and defined filter condition saying that Field is equal to "Complete". and press OK. but when i came to the view, i did not find any items.
I googled a bit, and then come to know that actually these fields are stored as numeric values. Here are the numeric values for different workflow statuses.
In Progress - 2
Complete - 5
Canceled - 15
Approved - 16
Rejected - 17
So now you must have got the idea, i went back and changed it to workflow field equal to 5 and it worked!!!!
That's it. your job is done.
SharePoint Kings,Technosavvy guys hunting SharePoint Challenges... SharePoint 2013, SharePoint 2010, MOSS 2007, Windows Workflow Foundation, Project Server and Other Related Technologies.
Subscribe to:
Post Comments (Atom)
Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!
If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com
14 comments:
wow, thanks a million.. those values are exactly what I need..
wow, thanks a millions, that's exactly what I need...
Thank you, this is just what the doctor ordered.
I've got some showing 5 for the workflowstatus, while they seem to be exactly as the 16 approved ones on the surface. Any idea?
Thanks.
@Anonymous,
not getting your scenario please describe.
Thanks man, you saved my day.
Thanks man, This is what i was needed
Thank you, i would never think of this
thanks, helped me a lot. For those who want to filter for workflows where Error Occured, use the value 3
Anonymous, thanks for
Error Occurred - 3
great post!!
thanks a lot... worked like a charm.
thanks a lot!! very very helpful!
Lifesaver my son , you just made my world a slightly better place to live in
This is great. Thanks.
I am trying to make this work for in a custom made workflow in SP Designer... but it don´t seems to work.
Not very logical solution. :) :)
Post a Comment