- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
11-30-2023 12:26 AM
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 ?
12-04-2023 06:45 AM
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,
12-04-2023 06:45 AM
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,
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!