Solved

WF Task for each user

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

Title # Comments Views Activity
onenote 2016 sync 40 238
SharePoint JSOM error 7 67
SharePoint 2010 external users required to enter domain name 16 46
SharePoint 2013 Link to File on Network Drive Not Working 3 23
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 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