Access a list from an integration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Access a list from an integration

L0 Member

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.

2 accepted solutions

Accepted Solutions

L4 Transporter

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. 

View solution in original post

L3 Networker

internalHttpRequest#

demisto.internalHttpRequest(method, uri, body=None)

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 

 

 

 

View solution in original post

3 REPLIES 3

L4 Transporter

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. 

L3 Networker

internalHttpRequest#

demisto.internalHttpRequest(method, uri, body=None)

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 

 

 

 

yes, that's the solution to my problem.

 

Thanks!!

  • 2 accepted solutions
  • 1689 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!