If quote()
does what you need, then put the string you need to quote under the Inputs section of the code method, so you have the letter ‘x’ in the left box, and the string you want to quote in the right box.
Then, in the code box itself, below the function that you pasted in above and want to use:
resolve(quote(inputs.x));
So the idea is that the string you need to quote is held in inputs.x
, and you call quote()
with that value, and then the resolve()
gives the result back to Flow XO.
Then the quoted result will be available as the output from the code service.
Hope that works for you!