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?

Paul Strupeikis
  • 3,818
  • 4
  • 20
  • 33
SharePoint Freak
  • 1,378
  • 7
  • 26
  • 39

1 Answers1

2

Two options avalable to retrieve custom fields

  • Check if the field is a built-in field: SPBuiltInFieldId.Contains(field.Id)
  • Check SPField.SourceId
Hitesh Chandegara
  • 2,638
  • 6
  • 29
  • 49