Description

Set the Assigned to User, Assignment Description and optionally the Deadline Date.

Syntax

Sub SetAssignment(Vault As Vault, ObjVer As ObjVer, UserID As Integer, Description As String, Deadline As Object)

Parameters

Name

Data Type

Description

Vault

Vault

Vault that contains the Object to process

ObjVer

ObjVer

ObjVer of the object to process. 

UserID

Integer

ID of the User to assign the object to

Description

String

Description to set on the assignment

Deadline

Object

the Deadline of the assignment in UK format (dd/mm/yyyy)

Return

No return value.

Example

'create Pentagon DOCS Script Library object

Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")


'set assignment

scriptLib.SetAssignment Vault, ObjVer, 1, "Description", "01/02/2020"