Splunk Dev

Splunk SOAR : How to call a custom function inside another custom function.

strangemohanraj
New Member

I need to call a custom function inside another custom function . How to implement it?

0 Karma

marnall
Motivator

Can I ask the reason why your custom function must call another custom function? You might be better served by making a playbook with multiple custom functions, or copy-pasting the code from the other custom function into your main custom function.

0 Karma

strangemohanraj
New Member

Two custom functions contains huge codes maintained by two different teams

0 Karma

marnall
Motivator

And it is strictly necessary to sandwich one function in the middle of the other? Can the functions not be shrunk to smaller modules and then arranged as desired in a playbook?

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...