Skip to main content
Question

Handling Loop Output Data

  • July 31, 2025
  • 2 replies
  • 42 views

jasonsigman
Forum|alt.badge.img+2

When using a loop in my playbook I end up having to write data to a file or case wall if I want to use it outside of that loop. Since this playbook is essentially a giant Python Script is there a way to set a global variable ( not something associated with the case or alert just the script itself ) and then reference that global variable throughout the playbook.

 

2 replies

Eoved
Forum|alt.badge.img+8
  • Bronze 1
  • August 4, 2025

Hi,

I think more information about what you're trying to achieve with this "global variable" can help direct us to a solution.

You can write the result to references using the "GoogleChronicle – Add Values To Reference List" integration, or to a list using the "Lists – Add String to Custom List" integration, and then use it for other tasks.


 


 


 


jasonsigman
Forum|alt.badge.img+2
  • Author
  • Bronze 1
  • August 6, 2025

So using reference lists or custom lists happen outside a playbook and have there own problems ( Reference lists cant be deleted ) 

 

I am looking for a way to pass output of certain actions inside a loop to actions outside of a loop

 

if I have a loop iterating over 5 IP Entities and in that loop they run a UDM search, how can I get the output of each UDM search to the Send Email action that happens after the loop is completed. I want to send one email not 5.

*** this is a example use case