How to Send a Test Notification Email in Cortex XSOAR and Identify Available Variables?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Send a Test Notification Email in Cortex XSOAR and Identify Available Variables?

L1 Bithead

Hi everyone,

 

I’m trying to test the email notifications configured in Cortex XSOAR to ensure they include the correct variables (like incident severity, name, and ID). Specifically, I want to verify the notification sent to an analyst when they are assigned an incident.

Here are my main questions:

  1. Is there a built-in way to send test notifications using the notification templates in XSOAR?
  2. Can I send a test email using the !send-mail command? If so, how can I structure it to include variables like {{.severity}} or {{.incident.id}}?
  3. What variables are available to customize notifications, particularly the ones sent when an incident is assigned to an analyst? Is there a reference list or documentation for these variables?

I’ve already configured the SMTP Mail Sender integration, and the test from the integration settings works fine. However, I want to simulate a real notification to validate the content and variables in the email.

 

Any guidance on testing notifications and understanding the available variables would be greatly appreciated!

2 REPLIES 2

L2 Linker

You can send any value if that is present in the context of the incident using "send-mail" automation. 

Simply grab the key to the specific value. For getting the incident name, you could use ${incident.name}

L1 Bithead

Hello,

 

I set the messages.html.formats.incidentassigned template as follows:

 

<p>{{.username}} has assigned you {{.incTermArticle}} {{.incTermSingular}} {{.invName}}.</p>

<ul>
<li>{{.incTermCapitalSingular}} Id: #{{.incID}} </li>
<li>{{.incTermCapitalSingular}} Name: {{.invName}}</li>
<li>{{.incTermCapitalSingular}} SLA: {{.SLA}}</li>
<li>{{.incTermCapitalSingular}} Severity: {{.severity}}</li>
</ul>

<p>Please log in and review.</p>

 

But most of the fields were empty:

 

JesusAngel_1-1737026999415.png

Regards,

  • 376 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!