This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Increment revison on file drag n drop

Hi all, related to my other query
https://community.m-files.com/forums-1552881334/f/m-files-api/6494/replacing-files-within-mfd-on-drag-drop-action

When files are dragged into a Multi File Document, I want to increment the revision number property
(given certain conditions about workflow states and so on)

The problem is 
1) If I put this into BeforeCheckInChanges, it will trigger every time the document is changed by any process
(it needs to be only if a new file has been dragged in)

2) If I put this into BeforeFileUpload / AfterFileUpload, those event handlers have no awareness of ObjVer, only the FileVer.
(so then can't edit properties on the Document ObjVer)

Is this possible?
Many thanks