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=="Azure AD"" 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>