Forum Discussion
Akenefick
2 years agoGenius
Hi djondinium
I tried it and it seems to be working for me. I copied your code (minus sorts and constraints) and tested it in stage with a normal non-admin user and I could see the names.
<#assign query = {
"messages": {
"fields": [ "id", "subject", "author.id", "author.first_name", "author.last_name" ]
}
}>
<#assign comments = restBuilder().method("POST").path("/search").body(query).admin(true).call()>
<#list comments.data.items as message>
<p>
${message.subject} by ${message.author.first_name!"missing"} ${message.author.last_name!"missing"}
</p>
</#list>
Here is what I see with a regular account. Maybe ask support.
- djondinium2 years agoExpert
Thanks for the help, Akenefick !
I created a ticket with support to check on the issue.
I tried many different ways to make this work, but all efforts were unsuccessful. Having something wrong with the platform is probably what's causing it.
Related Content
- 12 years ago