Search query with string in workflow

Hi,

I have a search query with attribute.adManagerDn:“*John Doe*” which runs fine, but when I add it to a workflow, the same query does not return any results. Is there a specific step I am missing? Any suggestions or ideas would be appreciated.

Thanks.

@smajumdar How many results do you get when you run the query in search UI. Workflow has a limitation on number of items it can handle in Loop.

So I get about 30 results in Search tab itself, but no results when I run the query through the workflow.

@smajumdar

Can you please provide us your workflow step that you’re using to call search?

Below are the screenshots. I have included:

  1. Steps
  2. Define Variable: returns the expected string for the search query
  3. Configuration of the Search query
  4. Step Input while running the workflow

The query running on the Search tab is: attributes.adManagerDn:“*John Doe*”

I have tried without the ““, but it doesn’ t return the expected results.

I have also tried putting the variable itself inside double quotes.

So, I created a variable to get the appropriate string.

Try wrapping the DefineVariable call into brackets. The workflow by default does not know to convert the value unless it’s wrapped in brackets like so:

attributes.adManagerDn:{{$.defineVariable.nameOfidentity}}

Thanks a lot!!. It helped.