cancel
Showing results for 
Search instead for 
Did you mean: 

How to read list of contents and write onto email body? Is there a way to do this.

anoop9275
Deputy Chef I
Deputy Chef I

Trying to draft email alert which would have contents of list created. Need to understand if I do group mapping, it shows only 1 record wherein list have 100 record count. Greatly appreciate quick response on this. 

1 ACCEPTED SOLUTION

marlon-muela
Workato employee
Workato employee

Hi @anoop9275 ,

This is Marlon from the Support team.
You can try to drag and drop the list items on the message body. See sample below.

marlonmuela_0-1694752771384.png

 

View solution in original post

8 REPLIES 8

gary1
Executive Chef I
Executive Chef I

I'd need to see some screenshots of your recipe to understand what's happening. In what action are you trying the group mapping?

anoop9275_1-1694013273589.png

Need above list with 2 records to be written onto email body.

 

gary1
Executive Chef I
Executive Chef I

In the email body, try [items].to_json. It's not pretty, but it will convert the array from Ruby to JSON and you'll be able to see the contents in the email.

If you want to format them, you can create a message template that uses HTML. 

Tried, shows only 1 record instead should show 2 records.