Passing JavaScript Result to callback-url

Is it possible to pass the result from a JavaScript step to a callback-url step?

I want to perform a regex on the title, then pass the output result to a callback-url.

  1. Hello World -> hello-world
  2. Use hello-world as [[title]] in callback-url

Thanks

Two choices:

  1. Construct and call the x-callback-url in script using the CallbackURL object…no need to pass the value out of the script
  2. Use draft.setTemplateTag(tag, value) to create a template tag that can be used in later steps.
2 Likes

Thanks @agiletortoise. Got it working :smiley:

1 Like