Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

How To Use Task.EmailBody

$
0
0

I'm trying to change the default email body used when a new task is created. I found the EmailBody property on the task, but it doesn't seem to do anything. What is this property for? Or am I misusing it?

            NewHireInfo_TaskProperties = new SPWorkflowTaskProperties();
            NewHireInfo_TaskProperties.Title = string.Format("Please Enter New Hire info", this.workflowProperties.Item.DisplayName);
            NewHireInfo_TaskId = Guid.NewGuid();
            TaskNewHireInfo_ContentTypeId = "0x010801003600255C4C644AEAAE4DBE72F5A84071"; 
            
            SPUser user = SPContext.Current.Web.EnsureUser(@"SPSTD\me");
            NewHireInfo_TaskProperties.AssignedTo = user.ToString();
            NewHireInfo_TaskProperties.EmailBody = "This is my custom email body, set in the create task method";


Enjoy your day, Joe


Viewing all articles
Browse latest Browse all 11508


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