Forum Discussion

alfozaav's avatar
alfozaav
Helper
2 years ago

LiQL Styling

Hi!   I'm creating a custom component using the LiQL 2 object reference. My goal is to fetch all messages that contain a specific tag. I have the correct query but I don´t know how to render the c...
  • VikasB's avatar
    2 years ago

    alfozaav 

    It is pretty simple. You can use below code, just need to update the Query in first line. 

     

    <#attempt>
    <#assign messageList =  rest("2.0","/search?q="+"QUERY"?url).data.items/>
    <#list messageList as messageItem>
       <p>messageItem.subject </p>
    </#list>
    <#recover>
    <!--message listing component not working-->
    </#attempt>