Use nested context expressions when you need to access a dynamic key from an event, step output, secret, integration, or other context object.
This is useful when the key name is stored in another context value and is not known in advance.
Access a dynamic key
Use a nested expression to resolve the key name dynamically:
{{ $.step_1.{{ $.step_2.key_2 }}.inner_key_2 }}In this example, Torq first resolves {{ $.step_2.key_2 }} and then uses that value as the key under $.step_1.
Reference integrations dynamically
You can also use nested expressions to reference integration values when the integration name is stored dynamically:
{{ $.integrations.{{ $.some_step.required_integration_name }}.some_value_from_the_integration }}In this example, Torq resolves the integration name from $.some_step.required_integration_name and then retrieves the required value from that integration.
