Forum Discussion
TariqHussain
10 years agoBoss
wilderichsophus if this is possible to call api from your context, you could easily get user first_name and last_name.
<#assign apiVersion = "2.0"/>
<#assign user_id = 'user-id'>
<#assign userQuery = "select first_name,last_name from users where id = '${user_id}' "/>
<#assign usersData = rest(apiVersion, "/search?q=" + userQuery?url).data.items[0]/>
${usersData.first_name}
${usersData.last_name}Give Kudo if you find my post helpful.
wilderichsophus
10 years agoAdept
Hi tariq,
I apologise for the late reply.
I have been turning your recommended snippet upside down. I am afraid the HTML email template that sits inside Studio -> Text Editor -> Email Text does not execute API call.
I am still researching for answer.
Thank you.
I apologise for the late reply.
I have been turning your recommended snippet upside down. I am afraid the HTML email template that sits inside Studio -> Text Editor -> Email Text does not execute API call.
I am still researching for answer.
Thank you.