I am trying to create a bulk upload for sharepoint site

It has some content types

For example, for contenttype Document, I am sending the values in the below fomat


This format works when the FieldType is Text (for column type single line of text)

But for other column types I am not able to figure out the FieldType that I need to send

I tried DateTime for column type Publishing Schedule Start Date and Choice for Choice

After doing some research i found that for field type of Yes/No in sharepoint the dataType is booleanand for DateTime it is Date And Time similarly where can i find the list of datatypes for all the field types(multiple line of text, user groups, Meta data etc)

1 Answer 1


Depending on the field type, you may not be just able to set the field value like you do it with simple text field type. E.g., with multi-choice fields you would do it like this:

$choicevalues = New-Object Microsoft.SharePoint.SPFieldMultiChoiceValue;
$i["multiplechoicefield"] = $l.Fields["multiplechoicefield"].ParseAndSetValue($i,$choicevalues);            
$i["multiplechoicefield"] = $choicevalues;            

I'm not going to copy&paste this LONG article here, but I believe it will tell you how to set values of different field types. It uses PowerShell, but regardless of how you're doing it, it should still give the idea for each field type.

  • Thanks @palo Where can i find the list of dataTypes available in sharepoint? For instance, dataType of Yes/No field is Boolean(pls refer to my updated question) Commented Apr 23, 2015 at 10:08

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.