# Declare the ImpactedEntities variable

**URL:** <https://community.dynatrace.com/t/declare-the-impactedentities-variable/42360>\
**Category:** Automations\
**Tags:** integrations, problem-notification\
**Created:** [October 30, 2023, 3:06pm UTC](https://community.dynatrace.com/t/declare-the-impactedentities-variable/42360 "2023-10-30T15:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aebb007](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@aebb007](https://community.dynatrace.com/u/aebb007)\
**Post date:** [October 30, 2023, 3:06pm UTC](https://community.dynatrace.com/t/declare-the-impactedentities-variable/42360/1 "2023-10-30T15:06:13Z")

</div>

![variableduda.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d84db7dbceb515a7f438885abffee5312a960b2b.jpeg)

How do you declare the ImpactedEntities variable??, since I have written it this way and I get the error “{ImpactedEntities}”, I declare it with arrays [ImpactedEntities] and it does not read the variable either, if you could give me an example, thank you! !

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [October 31, 2023, 2:46am UTC](https://community.dynatrace.com/t/declare-the-impactedentities-variable/42360/2 "2023-10-31T02:46:44Z")

</div>

what error you got when you use “{ImpactedEntities}”?

Could you send me a sample of this text?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [October 31, 2023, 7:16am UTC](https://community.dynatrace.com/t/declare-the-impactedentities-variable/42360/3 "2023-10-31T07:16:47Z")

</div>

Hi,

below you can find an example:

{  
“ImpactedEntities”: [  
{“type”: “HOST”, “name”: “MyHost1”, “entity”: “HOST-XXXXXXXXXXXXX” },  
{“type”: “SERVICE”, “name”: “MyService1”, “entity”: “SERVICE-XXXXXXXXXXXXX”}  
],  
“ImpactedEntity”: “MyHost1, MyService1”,  
“PID”: “99999”,  
“ProblemDetailsHTML”: “\<h1\>Dynatrace problem notification test run details\</h1\>”,  
“ProblemDetailsJSON”:  
{“ID” : “99999” }  
,  
“ProblemID”: “999”,  
“ProblemImpact”: “INFRASTRUCTURE”,  
“ProblemTitle”: “Dynatrace problem notification test run”,  
“Problem URL”: “[https://example.com](https://example.com)”,  
“State”: “OPEN”,  
“Tags”: “testtag1, testtag2”  
}

\*{ImpactedEntities} and {ProblemDetailsJSON} are JSON data types and must not have quotes around them.

Here you have more information:

> **[Send Dynatrace notifications via webhooks](https://docs.dynatrace.com/docs/analyze-explore-automate/alerting-and-notifications-classic/problem-notifications/webhook-integration)**
>
> Learn how to integrate problem-notifications using a custom webhook.
