Task list columns and template
A few questions regarding the task list: 1) What username is in the "Assigned To" column? It looks like it's always the "Name" not the Account Name. Is this guranteed? I'm executing a CAML query against the task list and I need to run it against the "Assigned To" user. 2) Are there certain columns that must exist in every task list? Is the Assigned To column in every task list and is the column name: SPBuiltInFieldId.AssignedTo? 3) Is the base template for every task list: SPListTemplateType.Tasks? Thank you in advance!
June 21st, 2010 5:38pm

Hi, The "Assigned To" column is of people and group type, I think it is SPFieldType.User type and its value should be SPFieldUser object while it is not just a name or an account. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldtype.aspx http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfielduser_members.aspx For some existed columns, you can delete them through list settings page and the others are depending on its base template. And for the base template information, I think you can see it through SPListTemplate. BaseType (the instance should be one of SPListTemplateType.Tasks). Hope it is helpful!Seven
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2010 9:28am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics