I am trying to use the bash scripting component to trigger a curl POST request to an external service. Inside of the JSON body string, I want to embed a Matillion environment variable. See example:
Is this the proper way to inject the environment variable?
Looking at the documentation, the variables work like they do in other components: ${my_variable}.They have an example in the documentation: https://documentation.matillion.com/docs/2407347#example.
Thanks @DataGuy . I was able to resolve by wrapping the environment variable reference in single quotes to effectively escape it out of the JSON string. When testing, the CURL request was able to interpret this as a single string after first resolving the environment variable reference and injecting the actual variable name. Here is what it looks like.