I'm trying to automate a way to back up all documents in a project from one datasource to another datasource (archives). I have no issue inserting the documents into the archives datasource. As I think it should, the archives datasource treats each document as a new created document. The issue is, I was asked to keep the document File Updated value in the archives datasource the same as document in the original datasource. Is there a way to change that value?
I tried learning something form here:
https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/107469/add-a-document-file-property-value-and-update-a-document-file-property-value
Here's what I'm doing:
IntPtr buffer = aaApi_SelectDocumentDataBuffer(28746, 1);
bool success = aaApi_DmsDataBufferSetStringProperty(buffer, DocumentProperty.UpdateTime, 0, "2022-10-24 9:37:04.323"); // this fails
aaApi_DmsDataBufferFree(buffer);
Thanks in advanced.