VMware Cloud Community
gmadore1
Contributor
Contributor

Updating Description field on items tab

we have a need to update the description that appears in the Description filed for a guest on the items tab,  this is the same information that appears in the Description filed on the details page for a guest.

The documentation leads us to believe we if we update the __Notes Custom Property (use VCO to write to this property) we should be able to write to this field.   We are not seeing this happen

Is there a different property we are not seeing?

1 Reply
JamesMW
Enthusiast
Enthusiast

You can update that field by directly interacting with the IaaS API's.

//Update the item with the new description field

var modelName = 'ManagementModelEntities.svc';

var entitySetName = 'VirtualMachines';

var entityIdString = vCACEntity.keyString;

var links = null;

var headers = null;

var updateProperties = new Properties();

updateProperties.put("Notes", "Your new description field here");

System.getModule("com.vmware.library.vcac").updateVCACEntity(vCACHost.id, modelName, entitySetName, entityIdString, updateProperties, links, headers);