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

Question

Question

Return found or not found from Search Repository

asked on November 20, 2014

 I want to have a decision that lets me send invoices to a separate folder when it is not found. There is no option to return found or not found from search. Anyone know how to do this?

1 0

Answer

SELECTED ANSWER
replied on November 20, 2014

Please see this help page regarding the tokens available for the Search Repository activity. Will the Result Count token work for your scenario?

0 0

Replies

replied on November 20, 2014

So, what i was thinking was having a decision which will route the ones that are not found somewhere else so that i may no specifically which one it is not finding.

 

1 0
replied on November 20, 2014

Yes, that's the idea. After your "Find Invoice" activity, use one of the decision activities with one branch based off of the "Result Count" token value being zero (i.e. didn't find the invoice) and doing something there while in the second branch (for when it did find the invoice) doing the other steps.

1 0
replied on November 20, 2014

I don't see how that would work me. I just might not be that creative. Here is my workflow. It is fairly straightforward. I am having an issue which i have opened with support, where the Find Invoice only work sometimes and fails to find it otherwise. My Search criteria works in Client when i enter the same value it is getting from the for each value.

 

0 0
replied on November 20, 2014

Nevermind, I see what you are saying about the result count. I do think that is going to work for me. I was initially thinking that it would only give me the total it was attempting to iterate, if that makes sense.

 

0 0
replied on August 10, 2022

Hi Eric,

Did this end up working for you with using result count? I'm trying to do something similar with a query data, search repository and then go one way if found and another if not found, but the search isn't finding items when it should (manually searching in LF finds it with the same search criteria). I was wondering if you have this issue as well or not?

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

Sign in to reply to this post.