Original Message:
Sent: Fri March 21, 2025 02:16 AM
From: Mohamad islam Hamadieh
Subject: Exchange Online Query Messages Playbook automatic activation on Artifact
Hi Paulius ,
The syntax is correct here :
inputs.exo_email_address_sender = artifact.value
you just have to make sure that the playbook you create is of type (Artifact activated)
------------------------------
Mohamad islam Hamadieh
I post SOAR content and tips on linkedIn , follow me :)
https://linkedin.com/in/mohamadislam
Original Message:
Sent: Thu March 20, 2025 10:21 AM
From: Paulius Roslekas
Subject: Exchange Online Query Messages Playbook automatic activation on Artifact
hello,
I apologize for the delayed response :/. Thank You for information.
In example below trying to put "email_recipient" artifact value in Function input script, "email_recipient" API seems correct, but no luck :/
"inputs.exo_email_address_sender" and "inputs.exo_email_address " artifact values are not the same.
EXAMPLE:
inputs.exo_email_address_sender = artifact.value
inputs.exo_email_address = artifact.value['email_recipient']
How to write it in correct syntax ?
Thanks
------------------------------
Paulius Roslekas
Original Message:
Sent: Fri February 07, 2025 12:42 AM
From: Mohamad islam Hamadieh
Subject: Exchange Online Query Messages Playbook automatic activation on Artifact
Hi Paulius,
I couldn't decide if your question means what data I should input in those fields, or how to fill the data using playbook script instead of filling the web for manually, so I will answer both :)
- What data should I input in those fields ?
- You can check the app documentation , the used function (Function - Exchange Online: Query Messages) part mention the inputs here .
- how to fill the data using playbook script instead of filling the web form manually ?
------------------------------
mohamad islam hamadieh
Original Message:
Sent: Thu February 06, 2025 07:02 AM
From: Paulius Roslekas
Subject: Exchange Online Query Messages Playbook automatic activation on Artifact
Hello,
i would like to search automatically emails using "Exchange Online Query Messages - Example (PB)" Playbook on Artifact creation and put results in Data table (will probably reuse original Post-script), by default playbook requires to fill web form manually(screen below).
How should i put Input fields below in script ?
exo_email_address: ??????? (This is what i seen in logs: "exo_query_output_format: ALL")
exo_mailfolders: ??????? (This is what i seen in logs: "exo_mailfolders: None")
exo_query_output_format: ?????? (This is what i see in logs: "exo_query_output_format: ['Exchange Online data table', 'Incident note']")
My modified playbook script:
=======================================================================================
import datetime
inputs.incident_id = incident.id
# Get the email address of the user whose mailbox will be queried.
inputs.exo_email_address_sender = artifact.value
# Configure Date time to search
tend = datetime.datetime.now().isoformat() + "Z"
tstart = datetime.datetime.today().isoformat() + "Z"
inputs.exo_start_date = tstart
inputs.exo_end_date = tend
if hasattr(playbook.inputs, "exchange_online_query_results_output_format"):
inputs.exo_query_output_format = [d for d in playbook.inputs.exchange_online_query_results_output_format]
=======================================================================================
Thanks
------------------------------
Paulius Roslekas
------------------------------