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

Question

Question

Workflow search for either or

asked on June 22, 2017

I need Workflow to find a document based on the last word being one of two possibilities.  I can't seem to make it work.  This is what I have tried:

{LF:Name="*%(RetrieveFormVariables_First_Name) %(RetrieveFormVariables_Last_Name) (Approved)*"|"*%(RetrieveFormVariables_First_Name) %(RetrieveFormVariables_Last_Name) (Rejected)*", Type="D"} & {LF:LOOKIN="FLAGSTAFF\LFForms"}

I have tried it with spaces before and after the |

And I have tried it with no spaces before and after.  Doesn't make a difference.  How can I make this work?

0 0

Answer

SELECTED ANSWER
replied on June 22, 2017 Show version history

You need to separate searches for the 2 possible names, you can't OR them inside the same LF:Name search:

(

{LF:Name="*%(RetrieveFormVariables_First_Name) %(RetrieveFormVariables_Last_Name) (Approved)*",Type="D"}

|

{LF:Name="*%(RetrieveFormVariables_First_Name) %(RetrieveFormVariables_Last_Name) (Rejected)*", Type="D"}

)

&

{LF:LOOKIN="FLAGSTAFF\LFForms"}

(newlines added for readability)

Edit: syntax typo.

1 0
replied on June 23, 2017

Thanks, Miruna!  This worked after one little tweak.  There was an extra } in place after the first grouping of document name to search for.

Thanks so much!

0 0
replied on June 23, 2017

Oh, oops, yeah, I see the extra curly bracket above. Copy and paste fail.blush

0 0

Replies

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

Sign in to reply to this post.