XSOAR - Execute Commands in Transformer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

XSOAR - Execute Commands in Transformer

L1 Bithead

Hello I was doing a transformer automation and I wanted to execute a command inside it and it works perfectly when I run it on the playground, however when I use it as a transformer it gives me the error Missing invoking entry (7) does anyone know how to execute commands in transformer automations? Is it possible? I'm just trying to execute a command in order to read from a list. An additional solution might be to use an api call to get the list, via the requests python library, but I don't want to leave the secret exposed in the automation....

with that said,

is there a way to execute a command or to read a list in a transformer automation?

Best regards.

1 REPLY 1

L1 Bithead

I wasn't able to call executeCommand inside the transformer as I wanted to, but I was able to use an API call via

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

 which ended up working for the transformer.

  • 249 Views
  • 1 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!