add_attachment
Related Concepts: Case Manipulation
This function gets a list of custom list items from category and entities list. This function returns a list of custom list item objects.
result = siemplify.add_attachment(file_path, case_id, alert_identifier, description, is_favorite)
Parameters:
Param Name | Param Type | Possible Values | Comments | Mandatory Parameter |
---|---|---|---|---|
file_path | string | “C:\Program Files (x86)\Google\Chrome\Application\chrome_proxy.exe” |
|
Yes |
case_id | string | 234 | Unique case id | No |
alert_identifier | string | 12345 | Unique alert identifier. | No |
description | string | “The description for the file” |
|
No |
is_favorite | boolean | True/False |
|
No |
Return Type
String
Example:
Input: Explicitly, File path, description and is_favorite. Implicitly, case_id and alert_identifier.
Sample Code
from SiemplifyAction import SiemplifyAction
siemplify = SiemplifyAction()
result = siemplify.add_attachment("C:\Program Files (x86)\Google\Chrome\Application\chrome_proxy.exe", case_id="234", alert_identifier=None, description=None, is_favorite=True)
Result Behavior
The file mentioned in the file path will be attached to case id 234 and attachment id will be returned.
Result Value
5 [The attachment id]