Quantcast
Viewing all articles
Browse latest Browse all 49146

Re: Pass endpoint as an input to a vRO action or workflow to access properties

OK, the selected node shown on the screenshot is of type vCACCAFE:Endpoint  (scripting type vCACCAFEEndpoint)

 

If you know the ID of your concrete endpoint, you can retrieve it from vRO using a code like the following (which tries to find the endpoint and then prints its name):

 

var endpointId = "7a6..."; // the ID of your endpoint
var endpoint = Server.findForType("vCACCAFE:Endpoint", endpointId);
if (endpoint == null) {   throw "Endpoint not found!";
}
System.log("Endpoint name: " + endpoint.name);

 

If you don't know the ID of the concrete endpoint, you can enumerate all available endpoints with code like the following:

 

var endpoints = Server.findAllForType("vCACCAFE:Endpoint");
if (endpoints == null) {  throw "Endpoints not found!";
}
for each (var endpoint in endpoints) {  System.log("Endpoint name: " + endpoint.name);
}

Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>