Hi all,
just found out that the Action com.vmware.vra.networks.getApplicableNetworks isn't working correctly and you can't use it out of the box to populate a Customer Attribute as stated in the vRA Custom Property Document.
Here is how to fix it:
Add the following line at the top:
var blueprint = System.getContext().getParameter("__asd_composition_blueprintId");
var component = System.getContext().getParameter("__asd_composition_componentId");
change the line:
var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user, tenant, host);
into:
var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user,tenant,host, blueprint, component);
DONE