Solved

WF Task for each user

Posted on 2010-11-28
3
240 Views
Last Modified: 2012-05-10
Hi Experts!

Scenario:

WSS 3.0.
SharePoint Designer 2007.

I have a Task list named: Tasks.

Every day at 08:00 AM, I need to create a simple task for each user (50 users), the task have the same content for everyone, as the example below.

----------------------------------------------------------------------------------------------------------------------
Task: Send the billing data.
Description: Please enter the address: http://xyz.com/listxyz, and fill the data.
----------------------------------------------------------------------------------------------------------------------

I created a group permissions, but if I assign the task to a group it not will have 50 items, but 1 item for the whole group.

I need a way to automate this, probably a workflow.
This workflow must be started manually, and creates 1 task for each user that I inform.

I tryed do this in SharePoint Designer, but no success.


How can i do this?

Thanks!
0
Comment
Question by:br_ms
3 Comments
 
LVL 9

Accepted Solution

by:
SharePointGirl earned 500 total points
ID: 34228095
Create a list with your 50 users. Assign a workflow to create a task.

Create some code to kick off your workflow.

foreach (SPListItem itm in docLib.Items)
{
    //get the workflow associated with this doc lib and kick if off manually
    SPWorkflowAssociation wrkFl = docLib.WorkflowAssociations["Your workflow name"];
    site.WorkflowManager.StartWorkflow(itm, wrkFl, wrkFl.AssociationData, true);
}

Note workflow associationdata can't be null.

0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 36160791
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now