Perform a property sync

Perform a property sync

A.WagnerKWWFA
Enthusiast Enthusiast
324 Views
1 Reply
Message 1 of 2

Perform a property sync

A.WagnerKWWFA
Enthusiast
Enthusiast

After copying a file and changing some user properties using the code

mUploadTicket = fileStoreService.CopyFile(fileDownloadTickets[0].Bytes, mExt, true, prpRequests, out mResults);
Autodesk.Connectivity.WebServices.File mNewFile = documentService.AddUploadedFile(...)

 

the new file has a system property mismatch at Author and CreationDate.

 

Is there a way to perform a property sync (see attachment) so that the new Author and the new Date are written to the File?

 

0 Likes
Accepted solutions (1)
325 Views
1 Reply
Reply (1)
Message 2 of 2

Markus.Koechl
Autodesk
Autodesk
Accepted solution

I suggest changing the order if you changed the properties between the two steps of copying and adding the new file. Update the properties right after the upload. Compare the code sample posted here: https://github.com/koechlm/iLogic-Vault/blob/2023/iLogic-Vault-QuickstartLibrary/iLogic-Vault%20Quic... and ff.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe