ServiceAPI file upload with date created

Intro

Today's question was how to upload a file including the date created.  One way to do it would be to transfer the file using some other process to the ServiceAPI server and then use the RecordFilePath property attach it to the record.  The other way is to send the RecordDateCreated property with the form post.

The code

This sample can be installed by copying it into the ServiceAPI examples folder and then opening it like this: http://localhost/HPRMServiceAPI/examples/CreateWithDateCreated.

What it does

The sample contains more detailed description but in short it:

  • includes a file upload form, and
  • sets the RecordDateCreated from the file object using Javascript.
Written on November 5, 2015