Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Using the Lists web service I am retrieving a content type as follows;

var contentTypeWithFields = listsService
    .GetListContentType(listId, contentType.ID);

However, the result does not include any information about custom columns which have been added to the list (and which are applied to all content types).

Is there some way that I can retrieve information about these custom columns?

share|improve this question

1 Answer 1

you can do it in more ways. For example by powershell you can write something like this:

PS > $web = Get-SPWeb "http://nevecrino:26295/"
PS > $web.Fields["MyCustomField"]
FieldValueType              : System.String
PreviewValueTyped           : CodiceFiorital field value.
FieldRenderingControl       : Microsoft.SharePoint.WebControls.TextField
DifferencingLimit           : 1500
FieldRenderingMobileControl : Microsoft.SharePoint.MobileControls.SPMobileTextField

..... and more and more information

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.