- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-20-2024 01:19 PM
How do I combine commands on the #XSOAR command line?
If one command wants a list, I would like to call a list, not enumerate it on the command line.
For example, the RandomElementFromList works like this:
!RandomElementFromList count=1 value="banana, orange, potato" may randomly respond with "orange". Easy Peazy.
getList works like this:
!getList listName=fruitAndVegatables will respond with the entire list. Nice.
What if I have a long list named fruitAndVegatables stored and I want a compound command that will pick a value by combining the randomElementFromList command and the getList command? What is the syntax?
My guess is this, but it doesn't work:
!RandomElementFromList count=1 value=!getList listName=fruitAndVegatables
What combination of quotes, curly brackets and delimiters do I need? I am interested in the syntax. I did not see a relevant example.
Thanks
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!