xorrkaz
14 years agoGenius
How to get the thread ID when viewing a thread?
I would like to extract the thread ID of the current thread from the thread page. However, when I use the env.context.message.uniqueId variable, I get the last message ID of the thread. I want the first (i.e. the initial question). How can I get that without making multiple REST calls?
For example, if the page URL reads:
/board/Default-email-notification-to-original-person-starting-a/td-p/66
But the last message on the page has ID 69, then my REST call returns 69 instead of 66. I want to get the 66. Thanks!
oopsies - try this .${page.context.thread.topicMessage.uniqueId}