How to dynamic list in email template?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to dynamic list in email template?

L1 Bithead

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?

1 REPLY 1

L4 Transporter

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. 

  • 906 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!