Using form input variables in search

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.

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

2 Likes