Highlighted
Enthusiast
Enthusiast

Capture Business Group From vRA request

Hi,

I need to capture user business group when opening vRA request.

I`ll explain,

I have vRA XaaS blueprint parameter that get external values from vRO action

but, the return values depends on the user business group.

so I must capture current user group before the request page done loading the external values

Things I tried so far:

1. System.getContext().getParameter("_asd.requestInfo_~subTenant~name");

2. I tried to get it from the form parameters

pastedImage_13.png

which leads to: (when the request done loading - reminder I need to before the request done loading)

pastedImage_2.png

3. I tried this one too current business group

    but this solution yields  all user business groups

help ?

0 Kudos
3 Replies
Highlighted
Immortal
Immortal

All you should need is System.getContext().getParameter("__asd_subTenantRef")

0 Kudos
Highlighted
Enthusiast
Enthusiast

That wont work, I keep getting null..

**EDIT**

Just found out the SQL plugin isnt working. will update again..

0 Kudos
Highlighted
Enthusiast
Enthusiast

Found a solution

when using external values I can inject value into the 'input' parameters like so:

look at the bg parameter.

this injects the business group into the action.

pastedImage_0.png

0 Kudos