Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

Returns a variable from the deployment template from which the client was installed. Alternatively, the template is fetched from the businessunit that the client was linked to at installation time.

Syntax

CMS_GetDeploymentTemplateVariable(sSection, sVariable, bMustExist ) As string

Parameters

sSection (String)

The name of the section in the template

sVariable (String)

The name of the variable to return

bMustExist (Boolean)

TRUE if variable must exist

Return value

The result will be stored in gsValue

If the variable can be read, then gbValue will be set to TRUE, otherwise, it will be set to FALSE.

{
	"operatingSystem": {
		"ImageId": 13,
		"diskConfigId": 1,
		"localAdmin": "true",
		"password": "1506Test"
	},
	"domain": {
		"joinDomain": "CAPADEMO.LOCAL",
		"domainName": "CAPADEMO.LOCAL",
		"domainUserName": "ciinst",
		"domainUserPassword": "1506Test",
		"computerObjectOU": "OU=Computers,OU=Odder,OU=Dev2,DC=CAPADEMO,DC=local"},
	"title": "Default",
	"customValues": [{
		"key": "a",
		"value": "1"
	}]
}

Example

If bStatus Then bStatus = CMS_GetPackageStatus("CapaInstaller", "v1.0")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines


  • No labels