I have a requirement to set the initial lease based on the custom property such as if company.custom.env= prod { set __Cafe.Request.VM.LeaseDays = 365} else if company.custom.env= eng { set __Cafe.Request.VM.LeaseDays = 65}
But i got stuck in updating this hidden properties run time , Please let me know if you have some idea to update a hidden property using vRO workflow
#vRAVmProperties.get("__Cafe.Request.VM.LeaseDays")
As of now I believe , hidden properties are not changeable using EBS payload , But can achieve the same using JSON ASD workflow as like below.
var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);
var testrequest = JSON.parse(jsonData);
testrequest["_leaseDays"] =catalogleasedays;
Please let me know if you know a straight forward option using EBS ,
I have tried as like below but no progress , whether anybody knows how we can update a hidden property and appreciate your help.
virtualMachineAddOrUpdateProperties.put('__Cafe.Request.VM.LeaseDays', '15');
As of now I believe , hidden properties are not changeable using EBS payload , But can achieve the same using JSON ASD workflow as like below.
var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);
var testrequest = JSON.parse(jsonData);
testrequest["_leaseDays"] =catalogleasedays;
Please let me know if you know a straight forward option using EBS ,