You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to access adf.context.getSecurityContext() values

edited May 14, 2020 1:26AM in Visual Builder

Summary

adf.context.getSecurityContext()?.getUserProfile() is not populating when used in groovy script

Content

Hello,

I am trying to get User Profile values and the use them inside Object Triggers of a Business Object. Used sample script to print the values, but apart from adf.context.getSecurityContext()?.getUserName() none of the other functions returned any value. The attributes are populated against the User Account.

As these functions are available in UI for section, I was expecting that these values can be used inside Groovy Script.

Is there any additional steps required to access these values? Code snippet is added below.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!