- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-09-2023 08:02 AM
To access a list from an automation I use something like:
json = json.loads(demisto.executeCommand("getList", {"listName": "blabla"})
However, from an integration I cannot use the executeCommand method. Is there any way to access a list from an integration? If it is not possible, what alternative do I have to access static information (it is a large list of dictionaries).
Thanks!
Rafa.
03-09-2023 08:35 AM
As you noted you cannot get a list from an integration, as integrations are designed to reach out and interact with external systems.
You can have the integration reach out and grab the data from an external source, or you can use an Automation Script to run the demisto.executeCommand , and then getList and do something from there.
03-10-2023 09:25 AM
Run an internal HTTP request to the XSOAR server. The request runs with the permissions of the executing user, when a command is being executed manually (such as via the War Room or when browsing a widget). When run via a playbook, will run with a readonly user with limited permissions isolated to the current incident only. Available for both Integrations and Scripts starting from Server version 6.1.
This method might be what you are looking for
@rdevega
03-09-2023 08:35 AM
As you noted you cannot get a list from an integration, as integrations are designed to reach out and interact with external systems.
You can have the integration reach out and grab the data from an external source, or you can use an Automation Script to run the demisto.executeCommand , and then getList and do something from there.
03-10-2023 09:25 AM
Run an internal HTTP request to the XSOAR server. The request runs with the permissions of the executing user, when a command is being executed manually (such as via the War Room or when browsing a widget). When run via a playbook, will run with a readonly user with limited permissions isolated to the current incident only. Available for both Integrations and Scripts starting from Server version 6.1.
This method might be what you are looking for
@rdevega
03-10-2023 10:48 AM
yes, that's the solution to my problem.
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!