.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

Is it possible to prevent a user from seeing the tasks generated by the workflow he starts?

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

Hi All,

When a user starts a workflow, there will be tasks generated in a task list. Is it possible to prevent this user from visiting the task list? I remove the user's permission from that task list and the user can not see the it at first. But when he starts the workflow, the task list becomes availble to the user.

I checked the permission setting of that task list and found a note saying "Some items of this list may have unique permissions which are not controlled from this page". That's why these tasks become available to the user.

The reason for what I'm trying to do is that I don't want the users to know what's going on in detail. The workflow will send the user a email when there is any outcome.

Is it possible to do that? Thanks!


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.





SharePoint Foundation - Workflow user has tasks assigned then leaves the company - How to assign to


Hi all,

if a user leaves the company and has workflow tasks pending whats the best practice for assigning them to another user without terminating the workflow.

I have tried renaming the account which allows the user to continue even though the tasks still display the original username.

I guess there are a couple of questions that arise from this.

1. Using SharePoint 2010 Foundation the SharePoint user accounts don't seem to re-sync automatically with AD after a rename, so how can this be done?

2. If we decide to create a new user, how do we assign the new user account to replace the leaver in the workflow without disrupting the flow?

Thanks for any help, can't find anything on the web about this.


Using a workflow to create a user task

Hi, we have a inforpath form that our HR Team fill out when we have a new user join the company, the form once submitted will upload to a sharepoint forms library and also put and entry in a shared calendar that the HR , Facilities and Corp IT team have access to.

what i am trying to do though is get it to create a task in a task list on the same site using some of the fields on the form to populate fields in the task list. i have used Sharepopint desginer to create the workflow and when i test it the workflow status show completed but the task never shows in the task list on the site

any ideas would be greatfully recieved

Modify User in Collect Data from User Workflow


I've created a workflow with a Collect Data from User action that emails a Group when the task is created. Once the task is claimed by an individual, the Assigned To column in the task list is updated to display that person's name but once the task is completed the email variable for the action is not updated and the group is emailed instead of the person listed as Assigned To.

So the question is this: Is there a way to update the user varialbe in the workflow task once the task is completed, or would I need to build my own workflow and use the Send Email action?

SPD workflow, emails sent for one user, not for the other


Good day,

I have a SPD workflow (WSS/2007) that take a date field from a document list and when that date occurs it sends an email.  If the date is in the past, it will send the email out right away.  It is working fine for one user, not for another.  Both users have the same permissions.  The workflow goes as follows:

ACTION: Set Variable: vTermdate to DocumentsNotificationDate
       then log Documents:Email Date to the workflow history list

CONDITION: if Variable: vTermdate is not Empty
ACTION: Log term not empty to the workflow history list

CONDITION: if Variable: vTermdate is Empty
ACTION: Set Variable: vTermdate to N/A

ACTION: Add 0 minutes to Documents:Email Date (out to

Modify workflow function by user

Hi can user modify the work flow based on the requirements...i saw some 3rd party tools...but is it possible to do by default in sharepoint with out external tools   Thanks _________ arWINdh  

Share Point Designer 2007 Workflow (Sequential) - multi-collect data from user

I am currently building a multi-step workflow using ShrePoint designer for MOSS2007. I am getting a bit confused as to if I have an error or if I am doing something incorrect. Here is what I have going. My workflow consists of something similar to the following New document comes in, a collect data from user routine is ran and assigned to a reviewer. My understanding when I create a collect data from user WorkFlow step is any data I request is saved in the "Tasks" list. Therefore I need to grab the workflow task ID in order to later lookup what the reviewer submitted... I understand this...   However, I have one more collect data from user workflow step and I have one more item to collect. Even though this is a brand new collect data from user workflow step - does the collected data still go into the "Tasks" list? In other words, if I have two steps in a workflow and both of these steps are "collect data from user", does the data from both steps go into the same "Tasks" list?  I could see how this might be possible as long as the Task list columns contain all the items for all the different "collect" data from user steps.  I don't see two different Tasks lists representing or named "Reviewer" or "Final" or anything, so I assume the items are all in "Tasks"   However..

Query for Workflow tasks?

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.

How to get User group in SharePoint Designer 2010 within workflow?

Hi, How to get user group in sharepoint designer within workflow? Basically I have to compair that current user is belongs to particular group or not.  How can I get check user group in workflow's if condition? G. Goyal

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  

User level workflow(s)

Hi there, I am wondering if there is such a tool/framework that allows for users to create their own workflows based on events or scheduling. Good example of such tool would be Outlook' scheduler in Calendar, where user can enter information for certain times, however it is lacking the logic that could've been embedded into it. A good example of what I am looking for: Consider user wants to send an e-mail with the a special reply as soon as he receives an e-mail from someone with certain properties. Currently this is partially implemented in Away-from-office notification, however consider if one wanted to expand on it. Alternatively, consider that a user wants for a popup on his screen for each 100th word he types in word processor. Of course, you may say, that such features can be added using VBA or macros, however I am after something more user-friendly, which has more meaning to the user than some code he/she has half clue about what it does or supposed to do. So, what I am after is some sort of tool/framework/etc that allows for users to design such workflow. I would prefer that you only consider Microsoft range of products, however, if possible, other products based on .NET technology. So far I was able to find WFPad, but it is only a component based tool from workflow foundation editor in Visual Studio. Do you know of any such tool/framework out there?

Workflow "Remove user from group"

Simple as that, anyone know of a 3rd party or simple script to get this done, its the ONLY thing holding me back from completing a major project >_<   Never have done share point custom work flows but this seems to be a time to learn >_<

How do I gather user input at the start of a workflow?

I'm a complete sharepoint newbie, so please forgive me :) I have developed a Sharepoint 2007 Sequential workflow in Visual Studio 2010. I have 'bound' it to a particular contact list, and set it such that it will be activated when a contact is edited. (I did this so that I had an easy way of starting the workflow (I just go in and edit a contact)). The workflow itself, on the designer just shows: onWorkflowActivated1 -> codeActivity1 -> logHistoryListActivity1 The workflow works and does the work in the codeActivity1 part. My problem now is how to ask the user for input. At present the code has some hard-coded values in it, for example: Dim emailTemplatePath = "http://en-ecm-jplender/Shared%20Documents/FATF%20Documents/EmailTemplate01.htm" Dim emailTemplate = (New System.Net.WebClient() With {.UseDefaultCredentials = True, .Encoding = System.Text.Encoding.UTF8}).DownloadString(emailTemplatePath) Dim attachmentFilePath = "http://en-ecm-jplender/Shared%20Documents/FATF%20Documents/People.pdf" Dim attachmentData = (New System.Net.WebClient() With {.UseDefaultCredentials = True, .Encoding = System.Text.Encoding.UTF8}).DownloadData(attachmentFilePath) However, I'd like for the user to be able to choose the PDF attachment, and the EmailTemplate document from Sharepoint. I tried fiddling with InfoPath, but it didn't seem to bind to t

How to Run a Routine When the Workflow Starts up

I have developed a workflow that is working just fine.  I am attempting to modify it so that variables are reinitialized with none-default values when the workflow is being loaded.  I created a new routine that I want to run when the workflow starts up.  This routine does the reinitializing of variables based on condidtions.  My initial intention was to place the routine within the same routine that calls InitializeComponents() (see code fragment below).  But this produces a build error.  Looks like InitializeComponents() is the only routine allowed in this procedure.  Where can I place mystartuproutine() so that it is executed when the workflow starts? Thanks for your feedback. using statement1; using statement2; using statement3; namespace MyNameSpace { public sealed partial class MyWorkflow : StateMachineWorkflowActivity { public MyWorkflow () { InitializeComponent(); mystartuproutine(); //placement here causes build error. Removal causes successful build. } routine1 { //code here } routine2 { //code here } mystartuproutine { //code here } } }

SharePoint 2010 email enabled list with workflow has incorrect User ID when items are emailed to the

I have set up an approval workflow for a document library that has email enabled. Emails come into the document library fine, however, if an item is emailed to the library the workflow kicks off with the initiator as "System Account" rather than the person who submitted the email. This makes the error of "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient." come up. If someone submits a document directly to the library (by logging into sharepoint and submitting) everything works fine. The person submitting by email is a valid sharepoint user and the profile shows the correct email address. The Created by and Modified by fields show the correct person (rather than System Account), it's only the workflow User ID that shows incorrectly if document is emailed to library. Any help or ideas would be appreciated. Thanks

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
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