Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CMS_GetDeploymentTemplateVariable(sSection, sVariable, bMustExist ) As string

Parameters

sSection (String)

Name The name of the section in the template

sVariable (String)

The requested variablename of the variable to return

bMustExist (Boolean)

TRUE if variable must exist

Return value

Result 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.

Code Block
{
	"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

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

...