Details
| ID | SetDateField |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | Utility |
README
Sets a custom incident field with the current date.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | Utility |
Inputs
| Argument Name | Description |
|---|---|
| fieldName | The name of the incident custom field. |
Outputs
There are no outputs for this script.
from time import strftime import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): field_name = demisto.args()["fieldName"] t = strftime("%a, %d %b %Y %H:%M:%S %Z") res = demisto.executeCommand("setIncident", {field_name: t}) demisto.results(res) if __name__ in ("__main__", "__builtin__", "builtins"): main()