Use Interpolate Mode in String Inputs
You may have read in the Tray documentation that when Working with data and jsonpaths you have the option to use interpolate mode. Interpolate mode can only be used when the property type is a "string".
You know an input type is a string if the datatype menu above that input looks like this: . If the datatype is not set to string, you can change it to a string when appropriate by selecting String from the menu dropdown:
Now you are ready to interpolate. Don't know how?
Check out our Knowledge Base Article: How to Interpolate.
Use Templating in Code Blocks
Ever try using a shortcut to interpolate and it did not work?
To reference a JSON path in a code block, you will need to use templating. Write out the JSON path inside of curly braces {} to dynamically reference that JSON path. For example, here to reference the trigger id you would write out {$.steps.object-helpers-1.result.trigger_id}.
PRO-TIP: For shortcuts on how to get the JSON path see here: jsonpath shortcuts
Comments
0 comments
Please sign in to leave a comment.