0

I want to retrieve columns in SPList which are created in the UI not the built in columns, I tried with the !field.FromBaseType but it's not working, I tried with the !field.SourceId.StartsWith("http"), also not working.

Any ideas?

1 Answer 1

2

Two options avalable to retrieve custom fields

  • Check if the field is a built-in field: SPBuiltInFieldId.Contains(field.Id)
  • Check SPField.SourceId

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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