Posted Tue, 25 Jan 2022 18:53:20 GMT by Tracy Fleming CiTi BOCES DocuWare Application Administrator
Sorry for a very simple question here, but I am trying to create a condition in a Workflow that functions like a 'contains' parameter. The line that works (when it's true) is: DW_DOCUMENT_TYPE = "Assessments- 6y" or DW_DOCUMENT_TYPE = "Grades List- 6y"

If we add another document type like "SomeOtherText- 6y" it of course won't trigger the workflow. I'd like to be able to act on every record where Document Type ends with "6y". In a search I'd use a Wildcard like *1y. 

If Workflow Conditions allowed using 'Contains' I'd use something like, DW_DOCUMENT_TYPE contains "6y"

Any suggestions?
ToF
Posted Tue, 25 Jan 2022 19:05:12 GMT by Jon Weston File IT Solutions Sr Application Developer and RIM specialist
Hi Tracy, you can totally do that using the InStr function, so it would look like InStr(DW_DOCUMENT_TYPE, "6y")>0 because you're telling it to go looking for 6y and return the position it finds it in DW_DOCUMENT_TYPE and if that position is greater than 0 then it's there.

btw, here's the link I have bookmarked that will take you to the workflow expression parser for the DW version you're using: Workflow Expression Parser in help.docuware.com.  You'll find InStr in there as well as a whole bunch of other useful expressions and functions.
Posted Tue, 25 Jan 2022 19:16:36 GMT by Tracy Fleming CiTi BOCES DocuWare Application Administrator
Thank you so much for such a quick response Jon.
Let me give that a try!
Tracy
Posted Tue, 25 Jan 2022 20:08:39 GMT by Tracy Fleming CiTi BOCES DocuWare Application Administrator
Worked Like a Dream!
Thanks so much Jon,
Tracy
Posted Tue, 25 Jan 2022 20:59:24 GMT by Jon Weston File IT Solutions Sr Application Developer and RIM specialist
Awesome possum, happy to help!

You must be signed in to post in this forum.