Using lists as parameters #494
-
Hi there Right now we have an issue with email notifications: The receivers of a notification is a List of Strings (string[]) on the API. We would like to parametrize them but we failed. How is the correct syntax for lists? The json looks like this:
But how can I add them in the notfication.yaml. I failed with these examples:
Is it possible using lists as parameters? Did anybody ever tried this? Kind regards and thanks for trying to help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @StephanSST! Thanks for the kind words about monaco 🙂 We currently just support plain strings passed in the template. Try the following in the yaml (wrapping the list of all addresses in single quotes(
|
Beta Was this translation helpful? Give feedback.
-
Hi Dieter
But with your tip and the error message I assumed that the double quote (
and it worked. It looks pretty strange but now I get two email receivers in my alert notification. So thank you very much for your fast reply. Your answer brought me to the right path. Kind regards, |
Beta Was this translation helpful? Give feedback.
Hi Dieter
I tried your tip but it's not working. I still get an error:
But with your tip and the error message I assumed that the double quote (
"
) sign at the beginning and at the end is constant so I just removed them and tried this new option:- receiver: [email protected]", "[email protected]
and it worked. It looks pretty strange but now I get two email receivers in my alert notificat…