[XSOAR] rasterize output during playbook

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

[XSOAR] rasterize output during playbook

L1 Bithead

Hi all,

I'm new in using XSOAR,

in a playbook I'm using the rasterize of a URL

MarcoGianfico_0-1621344466715.png

now I'd like to put a conditional step where I check if the rasterize is not successful (e.g. the url does not exist)

How can I check that?

 

1 accepted solution

Accepted Solutions

L2 Linker

You have 2 options to do that:
1. Rasterize url returns file - check if File exists with name url.png in the context - if not then rasterize was not successful

2. Use extend-context  to return the message from rasterize command to the context. If the rasterize will fail you will see in the context message like There is nothing to render. This can occur when there is a refused connection. Please check your URL.

View solution in original post

3 REPLIES 3

L2 Linker

You have 2 options to do that:
1. Rasterize url returns file - check if File exists with name url.png in the context - if not then rasterize was not successful

2. Use extend-context  to return the message from rasterize command to the context. If the rasterize will fail you will see in the context message like There is nothing to render. This can occur when there is a refused connection. Please check your URL.

I can see it in the room

MarcoGianfico_0-1621436971422.png

 

but i'm not able to get it in the context, could tell me the path?

L2 Linker

You forgot to add extend-context. 
To your command add append extend-context=foo=.

  • 1 accepted solution
  • 4045 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!