I am trying to create a vRA XaaS service that puts the user account that requested the service on a drop-down menu. This is of course part of a much larger plan. This is just testing how to get the user account data on that menu.
So, I created an action
--------------------------------------- Code ------------------------------------------------
var ans = ["fooy"];
var tenant;
var name;
try {
var host = vCACCAFEEntitiesFinder.getHost("123-abc-def");
tenant = host.tenant;
name = System.getContext().getParameter("__asd_requestedBy");
} catch (e) {
ans = ["Exception", e];
}
ans = [ "testing", "tenant:" + tenant, "Req by:" + requestedBy, "Name:" + name, "done"];
return ans;
-----------------------------------------------------
Then I created a vRO Workflow for vRA to call
-----------------------------------------------------------------
Then create and run the XaaS blueprint.
But when I run it, All I get is
What am I missing here. How do I get the account of the user requesting this blueprint on this menu?
The entire system is vRA 6.2.2 and vRO 6.,0.3
Thanks all,
Carl L.
var host = vCACCAFEEntitiesFinder.getHost("d1a45031-e74f-4db6-ba8a-20a7c2a3f221");
tenant = host.tenant;