Skip to content

CMS_GetAdvertisedPackages

Returns all packages advertised to the unit

CMS_GetAdvertisedPackages() As Boolean

Boolean, TRUE if function completed successfully. The result is stored in gaValue as an array. Each element has the format <package name>$<version>. If no packages are advertised to the unit, gaValue is an empty array.

If bStatus Then bStatus = CMS_GetAdvertisedPackages()
If bStatus Then
For index = LBound(gaValue) to UBound(gaValue)
xStatus = Job_WriteLog("Custom", "Index #" & index & ": '" & cStr(gaValue(index)) & "'", bStatus, True)
Next
End If

Scripting Guidelines

Constants Package Property Variables Business Unit support