- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-28-2024 02:29 AM
Dear All,
I am currently optimizing the phishing playbook and have encountered some issues with the detonation and enrichment processes that handle file objects. I noticed that duplicate files are being passed to the sub-playbooks. I attempted to use a unique function to filter out these duplicates, but it didn't work as expected. I have two files with duplicate entries
Cortex XSOAR #playbook
08-29-2024 06:05 AM
Hi,
Maybe you can make use of DT language. The value below printing the entry ids with unique names
${.=(val.File instanceof Array ? Array.from(new Map(val.File.map(file => [file.Name, file.EntryID])).values()).join(", ") : val.File.EntryID)}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!