ITrkNewItem.CreateNamedHold (method)

method CreateNamedHold
Syntax: Boolean = object.CreateNamedHold ( bName, bDesc, bRegion, vExpiration )
Parameters:
bName As String -

Hold Name
bDesc As String -

Description
bRegion As String -

Region or Range where the hold becomes active.
vExpiration As VARIANT -

Hold Expiration
Description:
The CreateNamedHold method allows the user to add a named hold to the item.

Example:

Dim oTrkItem As Object
Dim vTrkItem As Variant
Set oTrkItem = CreateObject("Tracker.TrkNewItem")
oTrkItem.ItemId = "T123"
oTrkItem.ProjectId = "PA1"
oTrkItem.RegionID = "A_TP1"
oTrkItem.ItemTypeId = "ITEMTYPE1"
oTrkItem.RegionLoc = -1
lRetValue = oTrkItem.CreateNamedHold ("NAMED_HOLD_1", "Held by TrkNewItem Script ", "REGION1", Now)
oTrkItem.InsertItem vTrkItem