Hi guys!
I want to create a VBscript on a workflow transition to allow or disallow an automatic workflow transition. I've been looking for resources in the forum and got some things done however for some time now I'm stuck. In the function I want to get an object by id and then read a property value from it. After I've done this for some objects I want to compare the values and if the two values are the same I want to allow the transition for the state transition script runs on.
The problem I have is that Set oResult = Vault.ObjectOperations.GetLatestObjectVersionAndProperties(oObjID, True
)
returns the wrong object and I'm not sure where I'm going wrong.
Am I giving the wrong ID to the oObjID
wich leads to GetLatestObjectVersionAndProperties
loading the wrong object? When i look at the IDs they are the correct Display IDs.
What could I do better?
Here is the complete script