Does anyone know how to escape text in Workflow that appears like a Token but is not?
I have a custom query that is querying the SQL Database, looking for any value that contains the text "(old)". SQL statements use the operator LIKE and the symbol % as wildcards in order to find wildcard matches.
So my statement in my query looks like this:
WHERE [emp].[name_preferred] LIKE '%(old)%'
Unfortunately, Workflow is seeing %(old) as a token identifier. I get a warning message that the token is not found, and then it returns all database (sees to be matching everything as true).
When testing the query from the workflow editor, it works as expected, it's just during a live run that it causes issues.
The funny thing is that you don't even reference tokens this way inside the query. You use a ? symbol in the query and then list the tokens that associated to the different ? symbols throughout the query.