I'm new to Phantom, and would be really interested if anyone has a better answer to this question, but I'll provide what I've been doing to solve this issue. Rather than using a format block, I would create a custom function with an input and an output. Within the custom function, you can format your data however you'd like, and then use that formatted data as the output of the function. The functions input would be something like "*.name", and the output would be something like "formatted data". There are some good examples of custom functions in the community repo if you've never used custom functions before, they may help you understand how to create one that works for your need. Another alternative is to pass in the list of names to the action where you want to use that list of names. So, your input to that action would be something like "artifact:*.name". Then, you can manually edit the code within that action's function. You'll see the default code for the action looping over the name list and you can tweak as needed. Please note, if you go this route, the visual playbook editor will no longer maintain that action's code for you, which basically means you'll need to ensure the "callback" is correct if you make future changes to the playbook.
... View more