PerBonomi
11 years agoBoss
How do I get the most recent comments?
Using the example code at the bottom of my post (got it from the Lithosphere TKB) I can get the most recently kudoed messages, but I'm looking to list the most recent comments in our Idea Exchange. ...
- 11 years ago
Hi PerBonomi
you need to access it using the standard freemarker syntax for accessing XML attributes
The below example will print the view_href attribute that is contained within the message object returned by the messages/id/XX call
<#assign msg = rest("messages/id/12345?restapi.response_style=view").message> ${msg.@view_href}
You can find the documentation here
Cheers,