bradger33
Enthusiast
Enthusiast

vRA7.3 Catalog Item Request - setProvisioningRequestData not setting properties

Jump to solution

Hi All,

I am trying to update a vRA7.3 catalog item request with updated properties but so far cannot get the new properties to actually pass over to the provisioning request

My WF contains code as below

var provisioningRequest = vCACCAFERequestsHelper.getProvisioningRequestForCatalogItem(CatalogItem);

var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);

var json = JSON.parse(jsonData);

example of setting new property:

json.vSphere__vCenter__Machine_1.data.cpu = 4;

I then set the request to use the new properties

vCACCAFERequestsHelper.setProvisioningRequestData(provisioningRequest, JSON.stringify(json));

However when i run a system log of the new updated data, this still contains the info from the original request.

Any ideas whats going wrong?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
bradger33
Enthusiast
Enthusiast

Resolved by using slighty different code , for example:

var provisioningRequest = vCACCAFERequestsHelper.getProvisioningRequestForCatalogItem(_iaasCatalogItem);

var provisioningRequestData = JSON.parse(vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest));

provisioningRequestData.vSphere__vCenter__Machine_1.data.cpu = 4;

View solution in original post

0 Kudos
2 Replies
bradger33
Enthusiast
Enthusiast

Resolved by using slighty different code , for example:

var provisioningRequest = vCACCAFERequestsHelper.getProvisioningRequestForCatalogItem(_iaasCatalogItem);

var provisioningRequestData = JSON.parse(vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest));

provisioningRequestData.vSphere__vCenter__Machine_1.data.cpu = 4;

View solution in original post

0 Kudos
Sany_1973
Enthusiast
Enthusiast

Is there any similar function available in VRA 8.0.1

vCACCAFERequestsHelper.getProvisioningRequestForCatalogItem(CatalogItem)

Thanks

0 Kudos