Splunk SOAR

Chaining action results and datapath issue

ponqersohn
New Member

Hi,

Say we have an action (lets call it Action1) that returns this under data:

[
{"type": "type1", "target": "target value1"},
{"type": "type2", "target": "target value2"}
]

I want to pass the target to another action (Action2) as parameter so I use action_result.data.*.target datapath to do it.

the action returns this:

[
{"result_from_action": "result_for target value1"},
{"result_from_action": "result_for target value2"}
]

Each row corresponds to the input row.

We have a third action (lets call it Action3) that accepts two parameters - the type from Action1 and the result_from_action from Action2 , So i pass:
- action_result.data.*.type from Action1
- action_result.data.*.result_from_action from Action2

I want the Action3 to be executed 2 times - for two pairs "type1", "result_for target value1" and  "type2", "result_for target value2" but in reality the action will be executed 4 times for all the possible permutations.

I understand why is this happening but im curious if there's a good way to force the platform to do what i need (without using custom functions to build another list and use it as input).

 

Thanks!

 

Labels (2)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...