Hello,
Thanks for contacting us.
Currently there is a limitation of the pre-process script. You can't get all the artifacts of an incident from the pre-process script of an incident workflow.
There are two work arounds:
1. Develop a function, and call the REST API from the function to get all the artifacts of a given incident.
2. Use our fn_utilities function to call Resilient REST API. You need to make two calls for this approach, first call the session endpoint to get a token, then call the artifact endpoint to get all the artifacts.
Thanks,
------------------------------
Yongjian Feng
Software Engineer
Resilient IBM
------------------------------