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) |