Solved

WF Task for each user

Posted on 2010-11-28
3
254 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

24 Experts available now in Live!

Get 1:1 Help Now