IIQ form user selection is showing null

Which IIQ version are you inquiring about?

8.3

Hello everyone, I am building a form that lets users select entitlements. But when I pass the selected value to the next step, it ends up showing null. What am I doing wrong?

  
  <Step icon="Form" name="Show Identity Form" posX="500" posY="10">
    <Approval name="Show Identity" owner="ref:launcher" return="awsEntitlement" 
 
      <Form name="identityForm" type="Workflow">

        <Section name="Application Access" type="text">
          <Field displayName="Entitlements" filterString="application.name==&quot;Azure AD&quot;" multi="true" name="awsEntitlement" type="ManagedAttribute">
    
          </Field>
        </Section>
        <Button action="cancel" label="Cancel" value="Cancel"/>
        <Button action="next" label="Submit"/>
      </Form>
    </Approval>
    <Transition to="Create Plan"/>
  </Step>

<Step icon="Script" name="Create Plan" posX="600" posY="10" resultVariable="plan">
    <Arg name="awsEntitlement" value="ref:awsEntitlement"/>
    <Arg name="targetIdentity" value="ref:targetIdentity"/>
    <Description> Initialize access request model </Description>
    <Script>
      <Source>
        import sailpoint.object.Identity;
        import sailpoint.object.ManagedAttribute;
        import java.util.ArrayList;

        Identity selected = context.getObject(Identity.class, targetIdentity);
        String usernameToDisplay = selected.getName().trim();
        log.error("Identity username inside plan: " + usernameToDisplay);
log.error("DEBUG: awsEntitlement = '" + awsEntitlement + "'");
   </Source>    </Script>

  </Step>


Try this one

log.error("DEBUG: awsEntitlement = '" + $(awsEntitlement));

Hi @sanhitasamaddar2025

Remove the argument “awsEntitlement" . In form you already return the field. You can directly call from form without using argument.

Hi, I have tried that but not working

Hi, I have tried that but not working

try declaring the field attribute in your WF



  <Variable input="true" name="awsEntitlement">
    <Description>The name of the Entitlement.</Description>
</Variable>

@sanhitasamaddar add this “awsEntitlement” in the Process variable section in workflow.

Yes, I added the variable but still the value is null

Added, but still same

Take the type=“text” declaration out of your Section tag. You should get your value.

Change it from

<Section name="Application Access" type="text">

to

<Section name="Application Access">
1 Like

It has worked. Thanks a lot

1 Like

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