FortiSOAR Knowledge Base
FortiSOAR: Security Orchestration and Response software provides innovative case management, automation, and orchestration. It pulls together all of an organization's tools, helps unify operations, and reduce alert fatigue, context switching, and the mean time to respond to incidents.
Andy_G
Staff
Staff
Article Id 196977
Description

If there is a need to refer a JINJA variable within another JINJA variable, then the right syntax do to that involves escaping and correct formatting of the resultant expression. Below is an example -


Let's say, there are two dynamic variables, vars.firstVariable and vars.secondVariable, then the correct expression to refer vars.secondVariable would be:


my_expression = {{vars.firstVariable|json_query("[?targetAsset=='"+ vars.secondVariable+"']")}}
Contributors