Forum Discussion
TariqHussain
9 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.
irach15
9 years agoMaven
was you able to run your code in email template?
Just looking at the reply bellow about not possible to use API calls in email templates.
Alos, I believe first name and last name can be only vissible at Admin level...
Let us know.
Thank you.
Related Content
- 2 years ago
- 2 years ago
- 3 months ago