# Monaco Problem Notification Email List

**URL:** <https://community.dynatrace.com/t/monaco-problem-notification-email-list/49692>\
**Category:** Automations\
**Created:** [January 13, 2025, 10:14pm UTC](https://community.dynatrace.com/t/monaco-problem-notification-email-list/49692 "2025-01-13T22:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AsafAx](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/asafax/32/6610_2.png) [@AsafAx](https://community.dynatrace.com/u/AsafAx)\
**Post date:** [January 13, 2025, 10:14pm UTC](https://community.dynatrace.com/t/monaco-problem-notification-email-list/49692/1 "2025-01-13T22:14:59Z")

</div>

Hello community,

I’m trying to deploy a problem notification (email integration) configuration using Monaco, but can’t figure out what the correct syntax is for the “recipients” (a list of emails) in the .json file.

When trying to deploy, I get this output:

```markup
...
Deployment failed - Dynatrace API rejected HTTP request / JSON data: HTTP send request https://{environmentid}.live.dynatrace.com/api/v2/settings/objects failed after 15 retries: (HTTP 400) (HTTP 400): [{"code":400,"error":{"code":400,"message":"Validation failed for 1 Validators.","constraintViolations":[{"path":"builtin:problem.notifications/0/emailNotification/recipients/0","message":"Given property 'recipients/0' with value: 'email1@mail.com','email2@mail.com','email3@mail.com' violates the following constraint: Email address is not Valid.","parameterLocation":"PAYLOAD_BODY","location":null}]},"invalidValue":{"alertingProfile":"XXXXXXXXXXXXX","displayName":"XXXXXX","emailNotification":{"bccRecipients":[],"body":"{ProblemDetailsHTML}","ccRecipients":[],"notifyClosedProblems":true,"recipients":["email1@mail.com','email2@mail.com','email3@mail.com"],"subject":"{State} Problem {ProblemID}: {ImpactedEntity}"},"enabled":true,"type":"EMAIL"}}]
...

```

The environment variable I have saved and try to load into the .json looks like this  
“[email1@mail.com](mailto:email1@mail.com)”, “[email2@mail.com](mailto:email2@mail.com)”, “[email3@mail.com](mailto:email3@mail.com)”

but I can’t figure out how to format it properly for the .json file.

Here is my problem-notif-id.json:

{  
&nbsp; &nbsp; “enabled”: true,  
&nbsp; &nbsp; “type”: “EMAIL”,  
&nbsp; &nbsp; “displayName”: “{{.name}}”,  
&nbsp; &nbsp; “alertingProfile”: “{{.alertingProfileId}}”,  
&nbsp; &nbsp; “emailNotification”: {  
&nbsp; &nbsp; &nbsp; **“recipients”: [**  
&nbsp; &nbsp; &nbsp; &nbsp; **“{{.recipients}}”**  
&nbsp; &nbsp; &nbsp; **],**  
&nbsp; &nbsp; “subject”: “{State} Problem {ProblemID}: {ImpactedEntity}”,  
&nbsp; &nbsp; “notifyClosedProblems”: true,  
&nbsp; &nbsp; “body”: “{ProblemDetailsHTML}”  
&nbsp; &nbsp; }  
}

I’ve tried looking through the community, documentation, and the “Configuration as Code Samples” on GitHub with no luck:

###### [dynatrace-configuration-as-code-samples/basic-templates-monaco at main · Dynatrace/dynatrace-configuration-as-code-samples · GitHub](https://github.com/Dynatrace/dynatrace-configuration-as-code-samples/tree/main/basic-templates-monaco)

Thanks for the help,

Asaf

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 14, 2025, 9:17am UTC](https://community.dynatrace.com/t/monaco-problem-notification-email-list/49692/2 "2025-01-14T09:17:32Z")

</div>

Hi,

I would use [list parameter](https://docs.dynatrace.com/docs/deliver/configuration-as-code/monaco/configuration/yaml-configuration#list) in YAML file.

Best regards
