title: How to Update KTA RunTimeField with an object?
body: <p>I am trying to update an object (Generic List object) to RuntimeFiledCollection. When I try to update using the following code, I am getting always Serialization error :(</p>
  <pre><code>//My object which need to update set with the documentRuntimeField value
  List&lt;docInfo&gt; docInfoList = new List&lt;docInfo&gt;
  docInfo = new docInfo { ID = &quot;11233&quot;, PageNumber = 1, text =&quot;MyOwnText&quot;};
  docInfoList.Add(docInfo);
  
  // Construct DOcument RuntimeFields Collection
  var docRunTimeCollection = new CaptureDocumentService.RuntimeFieldCollection();
  var docRunTimeField = new CaptureDocumentService.RuntimeField 
  { Name = &quot;FieldName&quot;, Value = docInfoList };
  docRunTimeCollection.Add(docRunTimeField);
  captureDocumentServiceClient.UpdateDocumentFieldValues(sessionId, null, validDocumentId, docRunTimeCollection);
  </code></pre>
  <p><strong>I always get sterilization error as shown below</strong>. Can someone give me an example how to update document field values with an object. Any help ?</p>
  <p><strong>Error</strong> : <em>There was an error while trying to serialize parameter <a href="http://www.kofax.com/agilityservices/sdk:runtimeFields.InnerException" rel="nofollow noreferrer">http://www.kofax.com/agilityservices/sdk:runtimeFields.InnerException</a> message was System.Collections.Generic.List</em></p>