I am querying SharePoint and am pulling data from a multi-line text field. My issue is that only the most recent line is pulled from the multi-line entry.

foreach (ListItem listItem in listItemCollection)

I changed my syntax to the below and I get a debug error of Ststem.InvalidCastException: Unable to cast object type System.String to type Sharepoint.client.fieldmultilinetext

foreach (ListItem listItem in listItemCollection)
  FieldMultiLineText multi = (FieldMultiLineText)listItem[“mtInfo”];
  String description = String.Empty;
  If (multi != null)
    description = multi.ToString();

1 Answer 1


I suppose that you have enabled 'Append text to existing text" for your multiple lines of text field.

By default, we can get the “Append Changes to Existing Text” newest version value from a multiple line text field using JavaScript Client Object Model. There is no straight way can get the versions of the Multi-line text column in Client Object Model.

As a workaround, we can use the Lists.GetVersionCollection Method of the List.asmx web service instead.

Refer to:

SharePoint web services: read version history for column changes

How to get list item field versions data in SharePoint Online

  • hey @JoannaW_MSFT, the asmx services are deprecated , the developers should not be using them. Apr 13, 2018 at 9:36
  • I am wanting to use a Windows form to return this data. Is it possible to use the JQuery you link to with a Windows form? Apr 16, 2018 at 13:55

Your Answer

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

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