Forum Discussion

PAULEM's avatar
PAULEM
Advisor
6 years ago

Cannot get last_post_time

I want to put a banner at the top of a thread if the last_post_time is older than three months.  Here's my code (just using a static message ID while testing): <#assign cutoff = (.now?long - 90 * 86...
  • VikasB's avatar
    6 years ago

    PAULEM

    Query will return a single message but still it will be an array. So either you need to iterate it in list or do it like this 

    <#assign postDate = msgInfo.data.items[0].conversation.last_post_time?long />