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 195968
Description

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"



Contributors