You are here:
JSON Structure for Email Templates
Understand the hierarchy and structure of the JSON properties that are available to the Mustache template processor in Life Sciences Customer Engagement email templates.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package. |
In the Life Sciences Cloud mobile app, all populated account and user fields, along with the associated objects, are available in lowercase within the JSON. Formula fields aren’t included.
{
"sender" : {
"firstname" : "John",
"lastname" : "Doe",
"username" : "john.doe@company.com",
"email" : "john.doe@company.com",
...,
"useradditionalinfo" : {
"userpictureurl" : "https://publicurltopicture.com/user-picture",
"secondaryphone" : "555-5555",
...,
"secondaryemail" : "jdoe@anotheremail.com"
},
"lifesciencemobileapp" : {
"devicemetadataversion" : ""
...,
"isdownloadsyncsuccessful" : true
}
},
"recipient" : {
"firstname" : "Jane",
"lastname" : "Smith",
"personemail" : "jane.smith@recipient.com",
...
"healthcareprovider" : {
"providertype" : "Medical Doctor",
...,
"phoneticname" : "Jayn Doe"
},
healthcareproviderspecialty : {
"specialtycode" : "1234567",
...,
"specialtytype" : "Oncology"
}
contactpointaddress : {
"addresstype" : "Business",
...,
"address" : "123 Main St, San Francisco, CA, 94115"
},
contactpointemail : [
{
"emailaddress" : "jsmith@companyemail.com",
...,
"preferencerank" : "1"
},
{
"emailaddress" : "jsmith2@companyemail.com"
...
}
],
contactpointphones : [
{
"telephonenumber" : "555-5550",
...,
"isprimary" : true
},
{
"telephonenumber" : "555-5551",
...
}
],
contactpointsocials : [
{
"socialplatformprovider" : "Facebook",
...,
"socialhandlename" : "Jane Doe"
},
{
"socialplatformprovider" : "Twitter"
...
}
],
},
"visit" : {
"status" : "Planned",
...,
"visitpriority" : "High",
"providervisit" : {
"isadhocprovidervisit" : true,
...,
"isconfirmed" : true
}
},
"surveyinvitationlink" : "https://invitationtosurvey.com/link",
"surveydevelopername" : "Survey Developer Name",
"remotesession.url" : "https://urltosession.com/session-id"
}This code enables you to use the raw JSON that's supplied to the Mustache template processor as a JavaScript object variable.
<script type="text/javascript">
<script type="text/javascript">
var allData = {{{.}}};
</script>
Did this article solve your issue?
Let us know so we can improve!

