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"
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.