Get User Property in ScreenContext using JavaScript
book
Article ID: 115957
calendar_today
Updated On:
Products
CA Identity ManagerCA Identity GovernanceCA Identity Portal
Issue/Introduction
We usually define environment variables which we can reuse in BLTH/EventListeners/ParticipantResolvers as User Defined Properties in environment definition (IDM management console > Home > Environments > ENV > Advanced Settings > Miscellaneous). Then we load those variables in java class body in init method and use it. Now have similar need when initializing Task Screen Profile Field, but I cannot find the way how to load the variable. Is it even possible to do it in java script?
Environment
Release: Component: IDMGR
Resolution
function init(FieldContext) { var Property_Value = FieldContext.getEnvironmentSettingsProvider().getEnvironmentUserDefinedPropertiesDefinition().getUserProperties().get("MY_USER_DEFINED_PROPERTY"); ... }