Forum Discussion
Payal
7 years agoDirector
Myko_P - Yes, you can fetch the messages from all the community blogs by using the below query:
<#assign messageId = rest("2.0","/search?q=" + "SELECT id FROM messages WHERE conversation.style='blog' AND depth = 0 ORDER BY post_time DESC LIMIT 3"?url).data.items />
Thanks
Myko_P
7 years agoExpert
Thank you, Payal !
Could you please take a look at my code above? Is it OK or I missed something?
- Payal7 years agoDirector
Myko_P - You can fetch all the required data by using v2 Query only and there is no need to use rest v1 API call:
<#assign messageId = rest("2.0","/search?q=" + "SELECT * FROM messages WHERE conversation.style='blog' AND depth = 0 ORDER BY post_time DESC LIMIT 3"?url).data.items />
replace 'id' by '*' and then use <#list> to display all the required messages.
Thanks,
Payal
Related Content
- 3 months ago
- 4 months ago
- 30 days ago
- 3 years ago