I'm using the NSX-v DynamicTypes plug-in V2 plugin.
Inside a workflow, I'm looking for a pre-created object using:
var object = Server.findForType("DynamicTypes:NSX.pool",hostid + '/' + edgeId + '/' + poolId);
System.log(object.name); //and I can see the correct data
then I assign the object to an out-param:
outPool = object; //(outPool = "DynamicTypes:NSX.pool")
In another workflow I have an Attribute of type "DynamicTypes:NSX.pool", when I call the first workflow binding the out-param to the attribute, it receive nothing. I can't access any property of the object.
How can I accomplish this?
Thanks a lot,
D.
It seems you do what I do in most of my workflows. Now I am wondering if they work fine :smileyshocked:
Can you please try to use the DynamicTypesManager.getObject() method instead and let me know if this fixed your issue ?
It seems you do what I do in most of my workflows. Now I am wondering if they work fine :smileyshocked:
Can you please try to use the DynamicTypesManager.getObject() method instead and let me know if this fixed your issue ?
I've been trying that but how can I cast from DynamicTypes:DynamicObject to DynamicTypes:NSX.pool object?
D.
PERFECT!!!!
Thank you very much! (as always)
D.
Good it worked for you but do you think I need to fix the same way the workflows I provided in the plug-in ?
If the behaviour I have is the same for everyone else, I guess so.
Is just change this:
var object = Server.findForType(type,nsxHost.id + '/' + edgeId + '/' + poolId);
for this:
var object = DynamicTypesManager.getObject("NSX" , "pool" , poolId);
It seems more correct.
Thanks again!
D.
PS: I'm provisioning this object as an Item in vRealize Automation, and it shows it like in the screenshot. Is there any way to change the name of the category showed on the left? (Id like to show "Networking")