Custom Automation issue

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.

Custom Automation issue

L2 Linker

Hi , 
I created a custom automation in python and in one point I need to retrieve a value from the incident the automation was running on.
For example , in a playbook there is an automation set to status=[ERROR,SUCCESS,ERROR,ERROR] and after that there is my automation that needs to use this value from the context data.
So how do I get this value in the automation ?

1 accepted solution

Accepted Solutions

L4 Transporter

Hi @Bar_Magnezi ,

 

You can read with the following method. For example, if you want to get the type of incident, you can run the below command.

incident = demisto.incident()
incidentType = incident["type"]

 

Best Regards,

View solution in original post

1 REPLY 1

L4 Transporter

Hi @Bar_Magnezi ,

 

You can read with the following method. For example, if you want to get the type of incident, you can run the below command.

incident = demisto.incident()
incidentType = incident["type"]

 

Best Regards,

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