I have successfully created discussions and replies using code in my Community site on SP 2013 server. Actually i received XML files containing the Discussions and Replies along with the corresponding metadata (Created Date, Created By, Modification Date,...).
After my code executes, all the discussions and replies are in place. But, the metadata is lost i.e. everywhere it shows my name in Created By and current date-time as last modified.
Actually in my case it should be this way only. Because i haven't written any code for updating metadata.
My question is whether it is possible to update these metadata fields programmatically or not ?