We have developed a custom workflow using Visual Studio 2010 in which we are using the CreateTask Activity. For some reason, the first time a task is assigned to a user, the user will receive a notification of the task assigned to them with a blank body. The Subject is correct and the link to the task is correct. Subsequent task notification to the same user are ok. Has anyone else experienced this strange behavior? Any resolutions?

Edit 1

As requested here is the code for the CreateTask activity...

private void createApprovalTask_MethodInvoking(object sender, EventArgs e) 
    approvalTaskId = Guid.NewGuid(); 
    approvalTaskProperties.AssignedTo = approverUsername; 
    approvalTaskProperties.Description = "Please approve or deny request."; 
    approvalTaskProperties.Title = workflowProperties.Web.Title + " - Request Needs Approval"; 
    approvalTaskProperties.ExtendedProperties["IsComplete"] = false; 
  • Can you post the code for your CreateTask activity? Do you have the property HasCustomEmailBody = true? – Tim Gabrhel Aug 30 '11 at 17:33
  • Next time, be sure to edit your original question with the update. It's very difficult to read in a comment. I've already updated it for you here. – Tim Gabrhel Aug 31 '11 at 19:39
  • Please tag by feature or topic and not by version or product. This helps to attract more attention to your question and keep it relevant. See How do I use tags for general guidelines. – Alex Angas Sep 12 '11 at 3:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.