While extracting data using an API, we got stuck at a point that in the extraction filter field no strings with a single quote can be inserted, such as:
filter = 'content_description eq '*purchase order*' '
It will return an error, see screenshot below. Is there an way to insert string values here with a single quote in it?
Things we tried:
- Escaping the single quote characters using two single quotes (as in Vertica) or with a backslash, without success.
- Wrapping this value in a variable. It looks as accepted in the first way, but will return in parsing error during te extraction (see screenshot below).
Thanks in advance!
Jan-peter
Screenshot 1: Filter Statement Field
Screenshot 2: Error when text string is wrapped during the extraction: