xsoar-ws-parse-context
To parse the context data after running xsoar-ws-get-action-status and resend emails to recipients who have not responded
python · Xsoar-web-server
Details
| ID | xsoar-ws-parse-context |
|---|---|
| Language | python |
| From Version | 6.5.0 |
| Docker Image | demisto/python3:3.12.8.3296088 |
README
To parse the context data after running xsoar-ws-get-action-status and resend emails to recipients who have not responded
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.5.0 |
Used In
This script is used in the following playbooks and scripts.
- xsoar-data-collection-response-tracking
Inputs
| Argument Name | Description |
|---|---|
| uuid | xsoar-ws job UUID |
| emailsubject | subject of the email |
| attachIDs | files to attach to the email |
Outputs
There are no outputs for this script.
import demistomock as demisto job_uuid = demisto.args().get("uuid") emailsubject = demisto.args().get("emailsubject") attachIDs = demisto.args().get("attachIDs", "") context = demisto.context() dt = demisto.dt(context, f"WS-ActionStatus(val.job_uuid=='{job_uuid}').link_tracker(val.response_received==false)") for item in dt: demisto.executeCommand( "send-mail", {"subject": emailsubject, "to": item["email"], "attachIDs": attachIDs, "htmlBody": item["emailhtml"]} )