Forum Discussion

gangadhar's avatar
gangadhar
Contributor
5 years ago

Determine message is a forum post, idea or a announcement

how can we determine a message in message table is announcement, forum or an Idea?

2 Replies

  • Hi gangadhar ,

    You can use the field conversation.style to get the required distinction.

    You can make a LIQL request as follows

    Select conversation.style from messages

     

    Please Give Kudos if you find this post useful and also mark this as Accepted Solution if this is the required solution.

    Regards

    Tarun Kumar

  • It's not clear what you mean by "announcement". There are two types of functionality on Khoros Community to highlight a thread.

    1. Feature a topic: You need to check if conversation.featured = true on the messages collection
    2. Float a topic: You need to query the message.id against the floated_messages collection