SetModifiedBy
Description
When modifying objects in an event handler, the object is shown as modified by (M-Files Server), Use this the method to set the modifying user to the specified User ID.
The specified object must be in a Checked Out state.
Syntax
Sub SetModifiedBy(Vault As Vault, ObjVer As ObjVer, UserID As Object)
Parameters
Name |
Data Type |
Description |
Vault |
The Vault object provided by the event handler. |
|
ObjVer |
ObjVer of object to process. This could be provided by the event handler or created dynamically using CreateObject("MFilesAPI.ObjVer"). |
|
UserID |
Integer or TypedValue |
The ID of the desired modifying user. |
Return
No return value.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'set modifying user
scriptLib.SetModifiedBy Vault, ObjVer, CurrentUserID