How to escape a single quote in a dynamic expression with functions?

jamesbascle picture jamesbascle · May 16, 2018 · Viewed 7.7k times · Source

Need to insert a parameter into a string using the dynamic data function from the pipeline parameters. Have tried backslash, double backslash, double single quote,@, @@, and other such nonsense. Just need a simple way to escape a single quote in a string.

Answer

jamesbascle picture jamesbascle · May 16, 2018

I actually found out. It's 2 single quotes apparently. IO forgot to do it in both places, I had a single \ in the second place!