06-14-2021 10:54 AM
I think the part that is creating an issue is the way the list is returning the values. Basically the list can store a chunk of data in almost any format. You can comma separate it or use newlines or whatever you want. You may have to parse the output though. Our commands can usually iterate over lists but it's going to expect something more like a json or python style list being handed to it. Use the Split transformer to break up the output to the command before it processes it. Here's an example:
Created the list as a comma separated value
If I try to print it out now you get basically a single string with all of the values. You can tell because our Print statement processed it in one command instead of iterating through each of them.
If you create a small playbook, add in the command you want to run and use a transformer like this:
Then your output will break up into an actual list and process each item individually.
I hope that helps!