Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

TaskProperties on CreateTask returning null

$
0
0
Hi!

I am new to SharePoint with WorkFlow Foundation, i created a workflow and bind it to list. When the list item is created i am adding a Task to some user using CreateTaskWithContentType Activity. I have assigned a new token, a content type and also taskID and taskProperties to that Createtask Activity.

In The MethodInvoking event of Create Task Activity taskProperties is returned as null.

Please Help...

Code:


private void createTask_MethodInvoking(object sender, EventArgs e) 
        { 
            TaskId = new Guid(); 
 
            taskProperties.TaskType = 1; 
            taskProperties.Title = "Task Assigned"
            taskProperties.StartDate = DateTime.Today; 
            taskProperties.PercentComplete = 0.0f; 
            taskProperties.AssignedTo = "someuser"
 
        } 




Shabih

Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>