You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Find user error message

posted on May 22, 2024 Show version history

Hi all,

 

Just had a question about the find user item in Workflow (on prem) 

1. If it doesn't find the user it errors and terminates the workflow, I was trying to use it for a conditional flow where it just returns a 'not found' result similar to say a SQL query. Am I configuring this wrong?
 

2. Also it doesn't seem to be able to search by email however I suspect that might be my user directory setup which I have yet to dive into in depth.

 

 

Mainly curious to why it errors instead of just giving a result that can be used in a conditional activity. Or how everyone else has been using it.

Thanks

 

1 0
replied on May 23, 2024

Thanks, that would work. Just thought it was a bit strange it just doesn't provide a result and continue on.

 

Thanks

Shan

 

0 0
replied on May 28, 2024

Your screenshot clipped the error message, so it's hard to tell what happened. Usually, errors indicate that something Workflow couldn't handle happened. That way there is a difference between "i looked and couldn't find the user" (successful completion with a results found token) and "i tried to look, but couldn't connect or something went wrong" (error, no tokens).

1 0
replied on May 29, 2024

Hi Miruna, 

 

I had some server info I didn't want to publish, but in this example I have made it search for my user name 'Shan' and it works fine. I assign my username to the token and search via the token

 

If I change that user name to say 'Shanx' which doesn't exist

The workflow errors

When I thought logically it should just return 'User not found' or "result not found' and not cause the workflow to error. All I did was change the user name which works when the correct one is entered. 

Is this a bug then if it is not supposed to error?

 

0 0
replied on May 22, 2024

For #1, you can wrap it in a Try-Catch activity to prevent it from terminating the workflow.



In the Catch Branch, you can use an Assign Token Values activity to "edit" the Find User tokens. Or you can use several Assign Token Value activities to create and update a token that indicates whether the Find User was successful.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.