VBScript - Trying to calculate a Project Percentage

Hey,

I'm trying to calculate a percentage of a project's completion through completed assignments,

I need a VBScript get a count of completed assignments related to a an object and total assignments related to a an object then I can calculate a percentage from there.

Anyone got any ideas?

Parents
  • Option Explicit
    ' Specify the object ID for which you want to retrieve related objects
    Dim objectID
    objectID = 101 
    
    ' Get the object version
    Dim objVersion : Set objVersion = vault.ObjectOperations.GetObjectInfo(objectID)
    
    ' Get the object's related objects
    Dim relatedObjects : Set relatedObjects = vault.ObjectOperations.GetRelatedObjects(objVersion.ObjVer)
    

    This is what I've started, I get a type mismatch for the GetObjectInfo.

Reply
  • Option Explicit
    ' Specify the object ID for which you want to retrieve related objects
    Dim objectID
    objectID = 101 
    
    ' Get the object version
    Dim objVersion : Set objVersion = vault.ObjectOperations.GetObjectInfo(objectID)
    
    ' Get the object's related objects
    Dim relatedObjects : Set relatedObjects = vault.ObjectOperations.GetRelatedObjects(objVersion.ObjVer)
    

    This is what I've started, I get a type mismatch for the GetObjectInfo.

Children