Can any body let me know how can i get foremthreadid of a forumreply,
$core_v2_forumReply.Get(934885).ParentId
when running above code getting blank , then my question is how we can get forumthreaadid of a forumreply
Can any body let me know how can i get foremthreadid of a forumreply,
$core_v2_forumReply.Get(934885).ParentId
when running above code getting blank , then my question is how we can get forumthreaadid of a forumreply
Does this work?
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ParentId
Does this work?
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ParentId
If you are expecting ParentId to be a thread, that is not a correct assumption. ParentId is a parent reply, if there is no parent it is null. All replies have the same Thread Id in the ThreadId property.
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ThreadId
no in that i am getting nothing mean same $reply.ParentId is printing
it reply the same id 934885 (forumreply)
That means its null, velocity scripts do not have a concept of null so it just prints the statement.
or the reply is null, either one will have the same result
so in that case how we can get forumthreadid for a forumreply
$reply.ThreadId
But you need to ensure your $reply is not null and you're making the correct call to get it back
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ThreadId
when i am running this code i am getting 934885(same id)
in that case how it may be forumthread id because it is forumthreadreply id