Thanks, but i know how to create an incident type, infact i have done that. My question is how do i set the incident type in my code ?.
Original Message:
Sent: Tue February 20, 2024 03:01 AM
From: Maria Czapkowska
Subject: Script - Process inbound email
You have to set the incident type in your code, it won't set on it's own that's why it's empty. If you need a custom incident type go to Customization Settings > Incident Type and add Type then use that in your code
------------------------------
Maria Czapkowska
Original Message:
Sent: Mon February 19, 2024 05:58 AM
From: benlinux
Subject: Script - Process inbound email
Hello Khaled,
Thank you for your response.
I dont want to create an incident when the incident type is of a particular value. I want the script to create an incident with a particular type. Th reason I want the incident to be created with a particular incident type, is because I have a custom phishing playbook that only triggered when an incident of a particular incident type is created.
As i previously mentioned i already have a rule that generates an incident from an incoming email based on this script, but the incident type is empty, causing my custom playbook not to be triggered.
Hope this explain my use case.
------------------------------
benlinux
Original Message:
Sent: Mon February 19, 2024 12:57 AM
From: Khaled Nasr
Subject: Script - Process inbound email
Hi,
Did you try create automated rule with condition incident type ="your type" then it will run the mentioned script
------------------------------
Khaled Nasr
Original Message:
Sent: Sun February 18, 2024 04:05 PM
From: benlinux
Subject: Script - Process inbound email
Hello Expert,
I want to modify the highlighted script to create an incident based on a particular incident type. The incident created by the script is empty.

Regards,
------------------------------
benlinux
------------------------------