Is it possible to use a private data key in the Search field of the "Define single-line text with variables" dialog? I think it should be possible but I can't seem to get the syntax right. Let's say I've stored a RegEx in a Job.PrivateData key "regularExpression" and I want to return the match in the Job.Name. I think that should look something like this:
[Job.Name:Search="[Job.PrivateData:Key="regularExpression"]"]
This gives the error:
Is this quote-related? The string is terminated prematurely in the second variable, causing everything after to be invalid.Variable 'Job.Name' has incorrect syntax in 'Lookup value': unexpected 'r' character after the argument value; expected characters are ',' or ']'
Things I've tried:
- Replaced the double-quotes around "regularExpression" with single quotes. This treats the whole variable as a literal.
- Removed the quotes around the variable after "Search=". This gives an unexpected '[' error.