I'm trying to create a html document template , and Need to Map one field which is JSON
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2022 12:57 AM
I am creating a document template and Need to Map fields from record , which is in JSON format ${payload} , but I need particular value , please let me know how to do that
Labels:
- Labels:
-
Scripting and Coding
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2022 02:57 AM
You can use mail_script for this requirement
<mail_script>
var payload = JSON.parse(current.payload);
template.print(payload.attribute1);
</mail_script>
Thank you,
Palani
Palani