DaveGussin | 2017-06-30 20:05:06 UTC | #1
Is it possible to use PostContentmanagementDocument to update the DateModified attribute of a Document? If so, how would you write the .NET code accordingly?
tim.smith | 2017-07-05 14:46:55 UTC | #2
The property isn't specified as read-only, so it may be possible to update it. The documentation contains a basic code sample. The Attribute class has a DateCreated property that can be set.
anon39326996 | 2017-07-05 14:53:49 UTC | #3
You cannot change the DateModified directly. The date changes based if you change the name of the document, add new tags, add a new attribute, upload a new version, etc.
DaveGussin | 2017-07-06 16:01:41 UTC | #4
Thanks Lucie.
I would like to draw your attention to a use case for being able to set the DateModified attribute: when you upload a file to a Workspace and you want to ensure that the actual file's date (last) modified value matches the DateModified attribute for the document in PureCloud. This would be required if you were synchronizing a folder (or set of folders) on a computer with your personal workspace.
As such, I suggest modifying the API to allow setting the DateModified attribute as a parameter when you create a document in PureCloud, and allowing the modification of the DateModified attribute when you update a document in PureCloud.
anon39326996 | 2017-07-07 11:00:33 UTC | #5
If the goal is to synchronize a folder to a local device, you would not be able to use any of our existing APIs. You'd need to be able to catch any deleted files, in addition to the created and modified files, and there's no api that allows you to do that today. That said, if you attach an attribute to a document, the modified date on the document does change. There are no plans to artificially change the modified data on the document, though.
system | 2017-08-07 11:00:52 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 1490