.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Query for Workflow tasks?

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
HI All, I need a CAML query which will retrieve all the workflow tasks from all the site collections in a web application, which are assigned to the current logged in user and whose status is NOT STARTED.  I.e., ASSIGNED TO = CurrentLoggedInUser STATUS=”Not Started” Workflow Name is not null Can any one of you help me regarding this Issue. Regards, Kumar.

View Complete Post

More Related Resource Links

Errors when interacting with WorkFlow generated tasks through ISA Server


I have a MOSs environment that I have published through ISA Server 2006 and i am getting really strange behavior whentrying to interact with WorkLFow generated tasks when I have connected through ISA. This also seems to affect InfoPath Forms Services. I was wondering if anyone out there is seeing any problems when using ISA Server to interact wih Forms or WorkFlows?


The error I get simply states:

the form cannot be submitted to the web server either because your computer is offline or because the host server is currently unavailable.


Any help would be appreciated.





Any way to execute a workflow when a caml query returns zero items?

Lets say I have a list with a status column and I want to execute a workflow when all items in the list have a status of complete. I basically want to execute a workflow when the caml query looking for non-complete statuses returns zero rows. Can I do this with SPD or are there any 3rd party tools for this? I'm thinking of writing one if there are not.

Workflow tasks viewable by most, but not all task owners.

I have a simple SharePoint Designer workflow that starts when a new list item is created.  The task owner is defined by a 'user/group' field selected from a sharepoint list.  Of 150+ users, only 4 are not able to see the tasks when assigned.  I have the task list set so they only see their own.  These 4 users do not see any tasks, where as everyone else does see only their own tasks.  To test, I changed the list settings to show all.  The users saw all tasks, but are not able to edit the tasks assigned to them. I feel the problem lies with how the workflow is assigning ownership of the task.  When I use the sharepoint task list to manually create a task for these 4 users, they can see and edit them, but when the workflow creates the task - they can't. Is there something special about how workflows assign task ownership based off Active Directory versus manually assigning tasks coming from the cached SharePoint profile?  (As a test I deleted the user from the All People list of the site, and manually added them back - no luck).Greg Appelt

Workflow AND/OR Tasks - how can I create one that occurs/recurrs on a weekly basis.

Hi All, Any ideas how I could configure SharePoint 2010 to trigger a workflow for a site member that notifies them to perform  a specific task ? I have a timesheet template that I intend to create a content type from. the use case is that each site member needs to fill out a timesheet at the start of the week to indicate what work they will be doing for the week. Is it possible ( using customisation ) to create a workflow so that a site member is prompted to create a new timesheet at the start of everyweek ? Alternatively can a recurrent task be created instead ? i.e. on the monday of every week create a new task for each site member to "create new weekly timesheet" Thanks and regards, Counie  

assigning workflow tasks

Hi, I'm trying to create a workflow in sharepoint designer which will assign the workflow task to a specific user based on a field. I'm using the "Collect Data from This User" action. I have two lists, "cost centre" and "purchase order". I've put the layout of them below. I want the workflow task generated from the Purchase Order to assign the workflow task to the Approver in Cost Centres based on the Cost Centre field. In Sharepoint designer I have done the following: Lookup Source: Cost Centres Field: Approver Find Field : Cost Centres:Cost Centre Value: Purchase Order:Cost Centre Cost Centres (List) Cost Centre                  Approver 0010                              Chris 0020                              Sarah Purchase Order (List) Cost Centre 0010 When I create a new item in Purchase Orders List with a Cost Centre field that matches a field in Cost Centres List, there is no-one assigned in the task generated from purchase orders list. Any ideas

Strange notification emails from workflow tasks

Pardon if this is a dumb question, but I can't figure it out. I am setting up a purchase request workflow and it works, but for some reason extra emails are being created and sent to a different address. I didn't put this address into the workflow so I am unsure why it is doing it.   My work flow consists of a simple start approval process to a set email address. Then an if and else to send emails (hardcoded) based on the approval status. The email address is mine and I don't have any diversions on it. An example of the emails: ---------------------------------------------- Approval has completed on 4444444. Approval on 4444444 has successfully completed. All participants have completed their tasks.   Approval started by ######\intranet on 9/16/2010 12:45 PM Comment: Rejected by ########P\intranet on 9/16/2010 12:48 PM Comment:  ---------------------------------------- I only have myself in the approving group. And I have gone through all my settings (well I think I have) and I can't find where this email address or setting is. Thanks in advance. Again, sorry if this is a dumb question.

Custom Workflow TaskEditForm(Custom Content Type) not getting displayed in Tasks List.



I have developed a custom sequential workflow. I have also developed a custom content type derived from Workflow Task Content Type.

I have 1 TaskEditForm.aspx in this custom Content Type. The custom Content Type is getting associated with the Tasks List but when I click EditItem option in ECB Menu or Ribbon,the in-built EditForm.aspx gets displayed instead of displaying my custom TaskEditForm.aspx from the custom Content Type.

Can anybody help?


Regards,Gautam Kaikini, SharePoint Developer. http://in.linkedin.com/in/gautamkaikini

How to get approver comments from OOTB workflow and display as a column in Tasks list



My problem is simple, although solution can be complex. If you know, when you start OOTB approval workflow, it creates a task item in Tasks list. An approver can click the task and open the page where he can approve/reject, also, where he can leave his comments in the "Type comments to include with your response:" textbox. These comments are included in the email which is sent after approval/rejection. Well, I looked at the columns in the Tasks list (Workflow Tasks list too) and I couldn't find any column that specifically stores these comments. I'm sure they are stored somewhere, they just can't be gone with an email.

My question is where are the comments and how to get and display them as a column in the Tasks list. I hope there is a UI way to do this. But if not, I'm ready to develop something like event handler for that.

Thank you!

Regards, R.D.M.

Workflow or Time Job for email reminder on Tasks List in Share Point 2007


I need to send a reminder to the person whom a task has been assigned 3 days before a due date. We also wants to re-use this workflow/time job on other lists as well. Name of the lists can be different??


Also if the due date gets change it should change the reminder accordingly.

Which approach i should take to achieve this?? 




SharePoint 2010 Workflow - Creating multiple tasks

I'm working on a SharePoint 2010 workflow which will assign multiple tasks to a list of users.

I'm using the Multiple Tasks webcast from Scot Hillier as a guideline
http://www.shillier.com/archive/2010/08/04/Creating_Multiple_and_Parallel_Tasks%20_in_SharePoint_2010_Workflow.aspx, but I cant' get the workflow to work. 

I've created the custom activity to create a single task, and used a replicator to start the this custom activity for every user.
However, the sub-activities in my custom activity are not shown(as opposed to webcast).

 public class CreateSingleTaskActivity : SequenceActivity
        public Guid SPTaskId = default(Guid); 
        public string SPTaskOutcome = default(String);
        public SPWorkflowTaskProperties SPTaskProperties = new SPWorkflowTaskProperties();
        public SPWorkflowTaskProperties SPAfterProperties = new SPWorkflowTaskProperties();
        public SPWorkflowTaskProperties SPBeforeProperties = new SPWorkflowTaskProperties();
        public Guid TaskStatusFieldId = new Guid("FCA4FCB5-503C-4e9f-AC62-CD79EB

Workflow to automatically notify if tasks are overdue?


Greetings all,


An intrepid manager in one of our departments has created an extensive list that she uses to assign tasks to various people throughout our organization.

Individuals are alerted whenever something is added for them to accomplish, but as many of you know, we all let our due dates lapse.

Now, she's asking for a way to automatically notify the assignee when the task become overdue - a poke - either once, or daily.

It seems that a workflow can accomplish this, but a workflow has two limitations:

1. It runs only when a specific item is updated, eg., an item would have to be updated every day for it to run

2. It runs for only a single item, e.g., a workflow won't run through all items in the library to check status


Is there any GUI way (we don't have programmers on staff) that we can accomplish this for her & her team?  (Auto notifications sent to assignees when tasks are overdue?)



[Sharepoint 2007] How to loop few tasks/activities in Visual studio workflow designer ?


Hi all,

I would like to create a workflow which have 3 tasks.

First the workflow create a task and assigned this task to a user. The user has to choose 4 dates in the year.

For each date chosen of the year two tasks will be created. The first task will ask the user to arrange a meeting.

When the first task has been completed a second task is assigned to the user asking for some feedback of the meeting.


How can i loop these 4 dates easily ?




To-Do tasks not starting when being assigned from another workflow.


Hi all,

I'm new to doing workflows and i have created a rather straight forward one to manage a leave calander list (Custom List) in SharePoint Designer. 

Here is a baisc overview of the workflow,

  1. User Submits Request -> Gets Email Notification -> Approvers Recieve Email Notification and Assigned TO-DO task
  2. If( leave is approved)-> {conf email to user and email to HR to inform them} else if (rejected) -> {conf email to user}

However the issue that i am having is that the work flow with automatically fire until the TO-DO task which will sit "not started" in thee workflow task list until it is completed manually. When the rest of the work flow will continue along happily.

My question is do i need to run another workflow on the workflow task list or is there a way to force a to-do task to auto complete?

Thanks in advance


how do I create email reminders for multiple tasks with a secondary workflow?


I need some advice regarding a issue I picked up during the creation of a secondary workflow to be used for email reminders. I created the workflows in sharepoint designer 2007.

Current situation;

I have a complex primary workflow that creates multiple tasks (about 9 tasks). Its important to note that these tasks get created in sequence. Therefore a task will only be created once the previous task has been completed (It's pretty much an approval workflow). Maybe I should also mention that I disabled the automatic task email notifications and replaced them with send email actions in my primary workflow (this should, however, not relate to my problem).

My Problem;

I created a secondary workflow to handle the email reminders. However, the email reminders only seem to work for the first task (task 1 ) created in the primary workflow. This is the steps I created;

1) First I checked that I'm going to send the reminders for the tasks created by the primary workflow, by verify the primary workflow name in a condition.

2) Once I verified the primary workflow I added the reminder time to the Created date of

Workflow with tasks and results for the task


HI, I am starting out with workflows.  I have created a simple work flow that creates a task item, and the only option on this task is approve.  How do I add a task item with options and then the work flow will be determined by the action of this task?

Any video's I can watch?

Modify workflow tasks in Infopath.


Hi there,

I am trying to add few controls on the workflow task from in Infopath. Everytime I try to add a control it prompts for binding to an existing control. How can I add a control without binding it to an existing one in Infopath?


Canb SP


SP2010 VS workflow: how to create multiple tasks


I need to create multiple workflow tasks in a while cycle.

I have put the "createTask" activity inside the "whileActivity" and specified the cycle conditions

But obviously i get an error when tryng to create two tasks with the same name, id and properties.

Is there a way to do this?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend