VMware Cloud Community
qc4vmware
Virtuoso
Virtuoso

Get custom property of blueprint component

I'm trying to figure out how to retrieve the custom properties defined on a component of a blueprint via vRO.  I can easily get the property groups and the properties on the blueprint but I'm struggling in getting the custom properties.  When I look at the data from the component it seems like the custom values are mixed in with other field values.  How do I filter out just the custom properties?

0 Kudos
1 Reply
qc4vmware
Virtuoso
Virtuoso

I've come up with a method to filter but I have to believe there is a better method.  Basically I am checking if the ComponentFieldValue has a key labeled "visibility" so if component.getData().get(key).getFacets().keys.indexOf("visibility") != -1 I am assuming its a custom property.

0 Kudos