# Using form input variables in search

**URL:** <https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220>\
**Category:** SHF Discussion and Questions\
**Tags:** forms, identity-security-cloud\
**Created:** [May 8, 2025, 8:19pm UTC](https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220 "2025-05-08T20:19:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominick-miller](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/dominick-miller/32/29002_2.png) [@dominick-miller](https://developer.sailpoint.com/discuss/u/dominick-miller)\
**Post date:** [May 8, 2025, 8:19pm UTC](https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220/1 "2025-05-08T20:19:53Z")

</div>

Is it possible to use form input variables in the “Select” dropdown? I want to pass a roleId into the form and use that value in my form search to be able to see all identities that have the role. I tried

`@access(id:{{$.formInput.roleId}})`

but this does not work.

---

<div class="post-metadata">

**Author:** ![rkhade](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/rkhade/32/6043_2.png) [@rkhade](https://developer.sailpoint.com/discuss/u/rkhade)\
**Post date:** [May 9, 2025, 9:08am UTC](https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220/2 "2025-05-09T09:08:38Z")

</div>

Hi @dominick-miller ,

Yes, this can definitely be achieved. You will need to utilize two forms along with a workflow that incorporates an interactive trigger and interactive forms.

form1: where Role will be selected and submitted

WorkFlow: Upon submission of Form 1, the workflow will use the `getIdentities` action with the following search query `@access(id:{{$.formInput.SelectedRole}})` to retrieve the relevant identities: form Input as Array

Form2: This form should be configured to accept an “Array” as Form input, allowing it to display or process the list of identities retrieved in the workflow step.  
Let me know if this is your use case

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/f/c/fc5cd1b3048c71d50e2595b11914e5c117795a4c.png)

---

<div class="post-metadata">

**Author:** ![dominick-miller](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/dominick-miller/32/29002_2.png) [@dominick-miller](https://developer.sailpoint.com/discuss/u/dominick-miller)\
**Post date:** [May 12, 2025, 4:57pm UTC](https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220/3 "2025-05-12T16:57:13Z")

</div>

Hey Rakesh,

This is a sub-optimal solution as the array form input is limited to 100 entries even if the search results include 100+. This is actually how I have it configured on my end now but am trying to use search instead of array form input to increase entry limit from 100 to 10,000.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 11, 2025, 4:57pm UTC](https://developer.sailpoint.com/discuss/t/using-form-input-variables-in-search/126220/4 "2025-07-11T16:57:34Z")

</div>

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