I try to deliver RequestId or ProjectId to a Action in Cloud Assambly. On Service-Broker i can map by Custom Forms.
My Problem is, a few inputfields are depends on username (access, network, cost center etc.).
on vRA 7.6 i can grab username on Action Request by call following command:
username=System.getContext().getParameter("__asd_requestedFor");
on vRA 8.x i don't found a Solution to show the requester. What i found is following:
var username = ""+Server.getCurrentLdapUser().userPrincipalName;
the return Value is the vRO embeddet user "vro-gateway-nUmcnn5Kz8QA7nq0"
It's possible on vRA 8.x Blueprint to add Enviroment Element to vRO $dynamicDefault / $dynamicEnum call to vRO?
Inside it's possible to deliver value, but igonore Enviroment Element ${env.xxxxxx}:
Using-and-Managing-Cloud-Assembly
inputs:
test123:
type: string
default: ${env.requestedBy}
co_owner:
type: string
$dynamicDefault: /data/vro-actions/sandbox/GetCurrentUser?filter={{test123}}
description: current user