Technical Note: [FortiSOAR / Cybersponse Tricks'n'Tips] Return a result of Child Playbook to Parent Playbook
In some of the cases, we need to return a result of child playbook to parent playbook. Use the following steps
Step 1: Create a parent playbook as shown below
a) Set a variable "parentVariable = 10"
b) Call a Child Playbook and pass a parameter "parentVariable = {{vars.parentVariable}} to Child Playbook
Step 2: Create a Child Playbook as shown below
a) Set a variable "childVariable = 20+{{vars.parentVariable | int}}"
Step 3: Create a step in Parent Playbook as shown below
a) Set a variable "total = {{vars.result.childVariable}}
Step 4: After execution of both the playbooks, "Child Playbook" result (It will always be the last step output of child playbook) will return to "Parent Playbook"




