- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-22-2023 12:22 AM
Hey Everyone,
In the context I have one key that holds multiple email values, I need to use them in my "SendEmailReply" automation. However when I call the key as a variable in To field, it comes as an array not single object. Is there any out of the box way to format values in arrays?
My example JSON in context
{
"Email":["Abc@ehd.com", "NMC@ex.com"]
}
Expected output when I call ${Email}
Abc@ehd.com, NMC@ex.com
I have seen some custom made automation for similar activities, but I'm 100% sure there is a simple method that can solve this 🙂
03-22-2023 05:32 AM
Please forgive me, but why do you think it won't work as is? Have you tried letting the email send and see what happens? I only ask because I have the exact same thing and it works just fine:
Task Started #43: Email Notification
!send-mail to="[\"team@company.com\",\"person1@company.com\",\"person2@company.com\",\"person3@company.com\",\"person4@company.com\"]" cc="person5@company.com" subject="DEMONSTRATION ONLY - Cryptomining Incident in EC2 Instance" body="This email is to make you aware of an ongoing situation with an EC2 instance for which you have been identified as a party of interest. A change ticket, CHG1234567, has been opened to isolate the instance identified below. Please contact person5@company.com if you have any questions or think you can provide information of value to this investigation.
03-22-2023 06:23 PM
I think this is SendMail automation, I was trying "SendEmailReply". I also figured out how to which is using "ArrayToCSV".
You might need it if you are CC multiple people on the same mail.
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!