Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

I'm trying to create a html document template , and Need to Map one field which is JSON

Sumedh Kharode
Tera Contributor

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

find_real_file.png

1 REPLY 1

palanikumar
Giga Sage
Giga Sage

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