Issue
Resolve when a user name does not autopopulate a reference variable in Service Portal.
Release
Any release supporting Service Portal
Cause
This issue occurs when the Javascript javascript:gs.getUserID() is missing in both the Reference qualifier and Default value of the reference variable.
Resolution
To resolve this:
- Go to the variable with the reference type.
2. Select the Type Specifications tab.
3. Change Use reference qualifier to Advanced.
4. In the Reference qualifier field, add the following javascript: javascript:gs.getUserID()
5. Select the Default value tab.
6. In the Default value field, add the following javascript: javascript:gs.getUserID()
7. Select Update to save the change.
Related Links
For more information, see the product documentation, Create a service catalog variable.