Overview
If using an "any can complete" or "any can approve" type of assignment with multiple assignees, it is possible to end up having only the completing assignee in the Assigned To property.
We have an open improvement about this with ID 128296, suggesting a separate property to store the original assignees.
This article offers some ideas for using M-Files Compliance Kit or VBScript to accomplish the same. The assignees are stored in a new property named, as an example, "Original assignees". The property is of type multi-select from Users.
Compliance Kit
With Compliance Kit, this can be done using the Managed Property module via an automatically calculated value.
Set Managed Properties to calculate the value for the property "Original assignees". Set the automatic value to the "Assigned to" placeholder.
A filter should check that the property is calculated only if it is empty (to avoid calculating it again), only for a specific class, and any other restrictions your environment might have.
VBScript
Please notice that scripting is not a part of standard support, and this is just an example script to show how to use the API. Be aware that all scripts are run at your own risk.
This sample assumes "Original assignees" property ID 1526, multi-select from value list Users. In production, it is of course a good idea to use property aliases instead.
The script is set as the automatic value for the property. It sets the built-in "Assigned to" property as the value for "Original assignees".
Dim PropertyValues : Set PropertyValues = Vault.ObjectPropertyOperations.GetProperties(ObjVer, False)
Dim iPDAssignedTo : iPDAssignedTo = 44
Dim iPDAOriginalAssignees : iPDAOriginalAssignees = 1526
' If the property is empty (do not recalculate)
If PropertyValues.SearchForProperty(iPDAOriginalAssignees).TypedValue.IsNull() Then
Output = PropertyValues.SearchForProperty(iPDAssignedTo).TypedValue.GetValueAsLookups
End if
