I want to display all the application account lists for the users who is accessing the form (the logged in user) and pass this in one field of name custom form

Identity identity=context.getObjectByName(Identity.class, identityName);
List applicationNames = new ArrayList();
if(identity != null){
List links = identity.getLinks();
for (Link link : links) {
String app=link.getApplicationName();

        String accountName = link.getDisplayName();
        String status = "Active";

Hi @Sohini_M ,

Welcome to the Sailpoint Developer community:

Please try below form:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Form PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Form created="" id="" modified="" name="Test Form" type="Workflow">
    <Field  displayName="Identity Application" multi="true" name="identityApplication">
        <AllowedValuesDefinition>
          <Script>
            <Source>
              Identity identity=context.getObjectByName(Identity.class, identityName);
              List applicationNames = new ArrayList();
              if(identity != null){
                List links = identity.getLinks();
                for (Link link : links) {
                  String app=link.getApplicationName();
                  applicationNames.add(applicationNames);
                }
                return applicationNames;
            </Source>
          </Script>          
      </AllowedValuesDefinition>
    </Field>
  <Button action="next" label="Approve" parameter="nextAction" value="true"/>
  <Button action="back" label="Reject" parameter="backAction" value="true"/>
</Form>

You can adjust the form and field according to your requirment.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.