I have a named password in User Application driver which I want to read in workflow to login to DB.
I have created a GCV with type password-ref and linked to named password like below.
<definition critical-change="true" display-name="Password" name="gcvDBPwd" type="password-ref">
Also, I have enabled the GCV which allows reading named password.
<definition display-name="Allow Named Password to be retrieved over LDAP" name="allow-fetch-named-passwords" type="boolean">
<description>Allow Named Password to be retrieved over LDAP. If the
value is true, then the named password value can be fetched.</description>
And now in mapping activity I tried to read the named password like below,
var dbPwd = GCV.getValueForNamedPassword('npDBpwd');
But I am getting a null value for dbPwd variable. Is there anything I missed here?