- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-05-2023 12:32 PM
Hello,
I want to get a list data of unknown lenght into html body(list).
But I don't know how to do this.
For example, I am pulling a data. in one of them, data1 and data2 come. in the next one, data1, data2 and data3 come. how can I print them dynamically in the mail template?
12-11-2023 07:57 AM
Assuming you're using the CreateEmailHtmlBody automation to create the template - https://xsoar.pan.dev/docs/reference/scripts/create-email-html-body
If that list changes everytime, then you could considering transforming it to the format you want by setting it to a new context key before passing it into the tempalte. For example using the Set automation, with a Join transformer to make it a comma seperated string.
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!