Share all details related to your problem, including any error messages you may have received.
I have a form that requests the users last name, first name, etc, I want to prepopulate this form with the attributes that are connected to the user id. I am not very good with beanshell, is there a good resource or sample code available to help me create this script for each attribute?
If this form is part of a workflow or invoked via quicklink, then you can use the create an identity model and use that to prepopulate all the available attributes.
If you need firstname/lastname you can just use return identity.getFirstname() or return identity.getLastname() for more methods you can check Identity class in javadoc.
import sailpoint.object.*;
String last = identity.getLastname();
return last;
Is still not pre-populating anything in the form. checking the logs, I am seeing this error:
sailpoint.tools.GeneralException: Error getting WebTarget from ConnectionManagersailpoint.tools.GeneralException: Missing value for hostname
I am runnining out of a container, did i miss some config? When i go to Admin Console > Environment
I see my container and the hostname is set to the same name as the server its running off of.
I just found out it is populating the information in the database, so the script is working, however when the user goes to fill out the form they do not see that value, is there something I need to do to have the user see the prepopulated info in the form?
I figured it out… for anyone with a similar issue, change the form type to application in the debugger and attach it to the application provisioning policy, when creating the form the type settings need “review required” checked to see the data prepopulated.